mlir-aie icon indicating copy to clipboard operation
mlir-aie copied to clipboard

mlir_aie_mem_alloc assumes DWORDS

Open denolf opened this issue 3 years ago • 0 comments

Tutorial 5 https://github.com/Xilinx/mlir-aie/blob/tutorial/tutorials/tutorial-5/test.cpp#L55-#L56 uses mlir_aie_mem_alloc to allocated memory in DRAM. It is implicitly assumed DWORDS (int) are being allocated, while malloc typically allocates bytes.

Due to AIE alignment restriction, we most likely need 32b (or maybe an even coarser alignment)?

denolf avatar Jan 13 '23 18:01 denolf