diff options
author | David Monahan <David.Monahan@arm.com> | 2021-11-04 16:31:46 +0000 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2021-11-05 17:23:24 +0000 |
commit | 6642b8a1f23c5f7333abf1133983eb3134af7c00 (patch) | |
tree | 01a37677720ee4e959367f53b7873322721adbba /include/armnn | |
parent | 0f13284d702b3a37f56ffce1412867b5ad9eda89 (diff) | |
download | armnn-6642b8a1f23c5f7333abf1133983eb3134af7c00.tar.gz |
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 <David.Monahan@arm.com>
Change-Id: Id2abb33d82697df36426f5709756c616af3e8ed7
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/Types.hpp | 3 | ||||
-rw-r--r-- | include/armnn/backends/ICustomAllocator.hpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index f61a1fdca8..72c59d9daa 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -219,7 +219,8 @@ enum class MemorySource : uint32_t Undefined = 0, Malloc = 1, DmaBuf = 2, - DmaBufProtected = 4 + DmaBufProtected = 4, + Gralloc = 5 }; enum class MemBlockStrategyType diff --git a/include/armnn/backends/ICustomAllocator.hpp b/include/armnn/backends/ICustomAllocator.hpp index eb8dfe1459..59ad27c6f4 100644 --- a/include/armnn/backends/ICustomAllocator.hpp +++ b/include/armnn/backends/ICustomAllocator.hpp @@ -36,8 +36,7 @@ public: * Supported types are: * MemorySource::Malloc * MemorySource::DmaBuf - * Unsupported types are: - * MemorySource::DmaBufProtected + * MemorySource::DmaBufProtected */ virtual armnn::MemorySource GetMemorySourceType() = 0; |