24.02
|
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource) More...
#include <ClBackendDefaultAllocator.hpp>
Public Member Functions | |
ClBackendDefaultAllocator ()=default | |
void * | allocate (size_t size, size_t alignment=0) override |
Interface to be implemented by the child class to allocate bytes. More... | |
void | free (void *ptr) override |
Interface to be implemented by the child class to free the allocated bytes. More... | |
armnn::MemorySource | GetMemorySourceType () override |
Used to specify what type of memory is being allocated by this allocator. More... | |
void * | GetMemoryRegionAtOffset (void *buffer, size_t offset, size_t alignment=0) override |
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a certain offset. More... | |
Public Member Functions inherited from ICustomAllocator | |
virtual | ~ICustomAllocator ()=default |
Default virtual destructor. More... | |
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource)
Definition at line 14 of file ClBackendDefaultAllocator.hpp.
|
default |
|
inlineoverridevirtual |
Interface to be implemented by the child class to allocate bytes.
[in] | size | Size to allocate |
[in] | alignment | Alignment that the returned pointer should comply with |
Implements ICustomAllocator.
Definition at line 19 of file ClBackendDefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Interface to be implemented by the child class to free the allocated bytes.
Implements ICustomAllocator.
Definition at line 30 of file ClBackendDefaultAllocator.hpp.
|
inlineoverridevirtual |
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a certain offset.
Reimplemented from ICustomAllocator.
Definition at line 41 of file ClBackendDefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Used to specify what type of memory is being allocated by this allocator.
Supported types are: MemorySource::Malloc MemorySource::DmaBuf MemorySource::DmaBufProtected
Implements ICustomAllocator.
Definition at line 36 of file ClBackendDefaultAllocator.hpp.
References armnn::Gralloc.