From 6642b8a1f23c5f7333abf1133983eb3134af7c00 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Thu, 4 Nov 2021 16:31:46 +0000 Subject: IVGCVSW-6412 Implement CLBackend ICustomAllocator * Added implementation of ClBackendDefaultAllocator * Added back in some pure virtual functions that were mistakenly removed from the CustomMemoryAllocatorSample * Added a new Gralloc MemorySource for memory which originates from the gpu * Added unittests Signed-off-by: David Monahan Change-Id: Id2abb33d82697df36426f5709756c616af3e8ed7 --- src/backends/cl/ClBackend.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/backends/cl/ClBackend.hpp') diff --git a/src/backends/cl/ClBackend.hpp b/src/backends/cl/ClBackend.hpp index ffce800261..7597d093be 100644 --- a/src/backends/cl/ClBackend.hpp +++ b/src/backends/cl/ClBackend.hpp @@ -88,6 +88,8 @@ public: IBackendInternal::IBackendSpecificModelContextPtr CreateBackendSpecificModelContext( const ModelOptions& modelOptions) const override; + std::unique_ptr GetDefaultAllocator() const override; + BackendCapabilities GetCapabilities() const override { return gpuAccCapabilities; -- cgit v1.2.1