aboutsummaryrefslogtreecommitdiff
path: root/samples/CustomMemoryAllocatorSample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samples/CustomMemoryAllocatorSample.cpp')
-rw-r--r--samples/CustomMemoryAllocatorSample.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/CustomMemoryAllocatorSample.cpp b/samples/CustomMemoryAllocatorSample.cpp
index a21158b251..171d8e2b5d 100644
--- a/samples/CustomMemoryAllocatorSample.cpp
+++ b/samples/CustomMemoryAllocatorSample.cpp
@@ -35,6 +35,16 @@ public:
}
return allocatedMemPtr;
}
+
+ void free(void* ptr) override
+ {
+ std::free(ptr);
+ }
+
+ armnn::MemorySource GetMemorySourceType() override
+ {
+ return armnn::MemorySource::Malloc;
+ }
};