WIP - [artiq] Test

This commit is contained in:
David Mak 2024-08-15 05:15:46 +08:00
parent 1e5b68fc04
commit 5e7d86bd50
1 changed files with 3 additions and 5 deletions

View File

@ -603,9 +603,8 @@ fn format_rpc_ret<'ctx>(
let dims_buf_sz =
ctx.builder.build_int_mul(ndarray.load_ndims(ctx), llvm_usize_sizeof, "").unwrap();
// let buffer_size =
// ctx.builder.build_int_add(dims_buf_sz, llvm_pdata_sizeof, "").unwrap();
let buffer_size = llvm_usize.const_int(32, false);
let buffer_size =
ctx.builder.build_int_add(dims_buf_sz, llvm_pdata_sizeof, "").unwrap();
let buffer =
ctx.builder.build_array_alloca(llvm_pi8, buffer_size, "rpc.buffer").unwrap();
@ -723,8 +722,7 @@ fn format_rpc_ret<'ctx>(
ctx,
ndarray_pdata,
buffer.base_ptr(ctx, generator),
llvm_usize.const_int(8, false),
// buffer_size,
buffer_size,
llvm_i1.const_zero()
);