From 89f600d4b0e6f15d65ff137494d12ca716036d1e Mon Sep 17 00:00:00 2001 From: David Mak Date: Thu, 15 Aug 2024 05:06:07 +0800 Subject: [PATCH] WIP - [artiq] Test --- nac3artiq/src/codegen.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nac3artiq/src/codegen.rs b/nac3artiq/src/codegen.rs index 11e9e911..0ed0be96 100644 --- a/nac3artiq/src/codegen.rs +++ b/nac3artiq/src/codegen.rs @@ -678,7 +678,7 @@ fn format_rpc_ret<'ctx>( ctx, generator, &llvm_usize.const_zero(), - llvm_usize.const_int(10, false), + llvm_usize.const_int(4, false), ); } @@ -692,6 +692,8 @@ fn format_rpc_ret<'ctx>( // dims_buf_sz, // llvm_i1.const_zero(), // ); + + // 1 dim: bufsize = 32 let sz = call_ndarray_calc_size(generator, ctx, &ndarray.dim_sizes(), (None, None)); @@ -734,7 +736,8 @@ fn format_rpc_ret<'ctx>( ctx, ndarray_pdata, buffer.base_ptr(ctx, generator), - buffer_size, + llvm_usize.const_int(2, false), + // buffer_size, llvm_i1.const_zero() );