#include <GpuFsaBackend.hpp>
Definition at line 117 of file GpuFsaBackend.hpp.
◆ GpuFsaBackendCustomAllocatorWrapper()
◆ allocate()
void* allocate |
( |
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
inlineoverride |
Definition at line 123 of file GpuFsaBackend.hpp.
125 auto alloc = m_CustomAllocator->allocate(size, alignment);
126 return MapAllocatedMemory(alloc, size, m_CustomAllocator->GetMemorySourceType());
◆ free()
Definition at line 128 of file GpuFsaBackend.hpp.
130 auto hostMemPtr = m_AllocatedBufferMappings[ptr];
131 clReleaseMemObject(
static_cast<cl_mem
>(ptr));
132 m_CustomAllocator->free(hostMemPtr);
◆ make_region()
std::unique_ptr<arm_compute::IMemoryRegion> make_region |
( |
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
inlineoverride |
Definition at line 134 of file GpuFsaBackend.hpp.
136 auto hostMemPtr = m_CustomAllocator->allocate(size, alignment);
137 cl_mem buffer = MapAllocatedMemory(hostMemPtr, size, m_CustomAllocator->GetMemorySourceType());
139 return std::make_unique<ClBackendCustomAllocatorMemoryRegion>(cl::Buffer(buffer),
141 m_CustomAllocator->GetMemorySourceType());
The documentation for this class was generated from the following file: