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