91 Memory(std::shared_ptr<MemoryImplBase> ptr);
189 std::shared_ptr<MemoryImplBase> pimpl;
This module is responsible for allocating and managing memory on the device.
Definition: vart_memory.hpp:43
Memory(MemoryImplType type, uint8_t *data, size_t size, std::shared_ptr< Device > device)
Memory() - Constructor to create Memory instance using user provided data pointer.
const uint8_t * map(DataMapFlags map_flags)
map() - Maps allocated memory to user space.
const std::shared_ptr< MemoryImplBase > & get_pimpl_handle() const
get_pimpl_handle() - Retrieves pointer to Memory Implementation Base class
void unmap()
unmap() - Unmaps allocated memory from user space.
uint64_t get_physical_addr()
get_physical_addr() - Retrieves the physical address of the allocated memory.
Memory(std::shared_ptr< MemoryImplBase > ptr)
Memory() - Constructor for using user defined implementation.
std::shared_ptr< Device > get_device_handle() const
get_device_handle() - Retrieves the device handle associated with memory allocation
size_t get_size()
get_size() - gets the size of the allocated memory
Memory(MemoryImplType type, int dma_fd, size_t size, std::shared_ptr< Device > device)
Memory() - Constructor to create Memory instance from a dma-buf file descriptor.
int export_buffer() const
export_buffer() - Export the underlying buffer as a dma-buf file descriptor
Memory(MemoryImplType type, size_t size, uint8_t mbank_idx, std::shared_ptr< Device > device)
Memory() - Constructor to allocate memory using implementation specific method based on input 'type'.
VART (Vitis AI Runtime) public API namespace.
MemoryImplType
Definition: vart_memory_types.hpp:39
DataMapFlags
Definition: vart_memory_types.hpp:30
Device module managing hardware context and xclbin loading.