diff options
Diffstat (limited to 'samples/CustomMemoryAllocatorSample.cpp')
-rw-r--r-- | samples/CustomMemoryAllocatorSample.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/samples/CustomMemoryAllocatorSample.cpp b/samples/CustomMemoryAllocatorSample.cpp index 51b3c81079..a21158b251 100644 --- a/samples/CustomMemoryAllocatorSample.cpp +++ b/samples/CustomMemoryAllocatorSample.cpp @@ -19,7 +19,7 @@ class SampleClBackendCustomAllocator : public armnn::ICustomAllocator public: SampleClBackendCustomAllocator() = default; - void* allocate(size_t size, size_t alignment) + void* allocate(size_t size, size_t alignment) override { // If alignment is 0 just use the CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE for alignment if (alignment == 0) @@ -35,16 +35,6 @@ public: } return allocatedMemPtr; } - - void free(void* ptr) - { - std::free(ptr); - } - - armnn::MemorySource GetMemorySourceType() - { - return armnn::MemorySource::Malloc; - } }; |