WIP - [artiq] Test

This commit is contained in:
David Mak 2024-08-15 05:36:28 +08:00
parent 47f32378d0
commit b91eaea4e9
1 changed files with 23 additions and 23 deletions

View File

@ -641,13 +641,13 @@ fn format_rpc_ret<'ctx>(
.unwrap()) .unwrap())
}, },
|generator, ctx| { |generator, ctx| {
// call_memcpy_generic( call_memcpy_generic(
// ctx, ctx,
// ndarray.ptr_to_data(ctx), ndarray.ptr_to_data(ctx),
// buffer.base_ptr(ctx, generator), buffer.base_ptr(ctx, generator),
// llvm_pdata_sizeof, llvm_pdata_sizeof,
// llvm_i1.const_zero(), llvm_i1.const_zero(),
// ); );
let pbuffer_dims_begin = unsafe { let pbuffer_dims_begin = unsafe {
buffer.ptr_offset_unchecked(ctx, generator, &llvm_pdata_sizeof, None) buffer.ptr_offset_unchecked(ctx, generator, &llvm_pdata_sizeof, None)
@ -735,22 +735,22 @@ fn format_rpc_ret<'ctx>(
// ); // );
// } // }
ndarray.create_data( // ndarray.create_data(
ctx, // ctx,
llvm_elem_ty, // llvm_elem_ty,
llvm_usize.const_int(3, false), // llvm_usize.const_int(3, false),
); // );
//
let ndarray_pdata = unsafe { // let ndarray_pdata = unsafe {
ndarray.data().base_ptr(ctx, generator) // ndarray.data().base_ptr(ctx, generator)
}; // };
call_memcpy_generic( // call_memcpy_generic(
ctx, // ctx,
ndarray_pdata, // ndarray_pdata,
buffer.base_ptr(ctx, generator), // buffer.base_ptr(ctx, generator),
buffer_size, // buffer_size,
llvm_i1.const_zero() // llvm_i1.const_zero()
); // );
Ok(()) Ok(())
}, },