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