12#ifndef AIE_MEMORY_ALLOCATOR_H
13#define AIE_MEMORY_ALLOCATOR_H
42static uint16_t nextAlignedAddr;
u64 mlir_aie_get_device_address(aie_libxaie_ctx_t *_xaie, void *host_address)
Return a device address corresponding to the given host address.
void mlir_aie_sync_mem_dev(ext_mem_model_t &handle)
Synchronize the buffer from the host CPU to the device.
int * mlir_aie_mem_alloc(aie_libxaie_ctx_t *_xaie, ext_mem_model_t &handle, int size)
Allocate a buffer in device memory.
void mlir_aie_sync_mem_cpu(ext_mem_model_t &handle)
Synchronize the buffer from the device to the host CPU.