diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2023-01-09 12:47:48 +0000 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2023-01-12 11:58:50 +0000 |
commit | 2b32a69f3aac5496d0a966d9740cb4854504f3d9 (patch) | |
tree | 0ffc0710d5dd0feb9aa35be3defc8111d1c035b8 /src/backends/aclCommon/BaseMemoryManager.cpp | |
parent | d69c1c595375b904a7f19f562ac1d54098184b4e (diff) | |
download | armnn-2b32a69f3aac5496d0a966d9740cb4854504f3d9.tar.gz |
IVGCVSW-7380 Update the GpuFsa Skeleton to build and load ACL
* Reuse cl backend to be able to create ClRuntime, ClContexts etc. for the new GpuFsa backend.
* Can access code defined in the experimental interface dynamic_fusion.
* No BackendModelContext as model/backend options not required for now.
* Any of the serializer and deserializer is emitted as context caching not required.
* No ImportTensorHandle and ImportTensorHandleFactory for now.
* Moved tuning and IClTensorHandle code to aclCommon as it is accessed by both cl and gpuFsa.
* Small code refactor of cl backend.
* Added DefaultAllocatorTests to GpuFsa backend.
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: I6ae591360e9d2a783aafd06e2d7bf8e0b3e623ee
Diffstat (limited to 'src/backends/aclCommon/BaseMemoryManager.cpp')
-rw-r--r-- | src/backends/aclCommon/BaseMemoryManager.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/backends/aclCommon/BaseMemoryManager.cpp b/src/backends/aclCommon/BaseMemoryManager.cpp index c60a4a04ae..e70d7f851d 100644 --- a/src/backends/aclCommon/BaseMemoryManager.cpp +++ b/src/backends/aclCommon/BaseMemoryManager.cpp @@ -1,10 +1,10 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017, 2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "BaseMemoryManager.hpp" -#if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) +#if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED) #include "arm_compute/runtime/BlobLifetimeManager.h" #include "arm_compute/runtime/PoolManager.h" #include "arm_compute/runtime/OffsetLifetimeManager.h" @@ -14,7 +14,7 @@ namespace armnn { -#if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) +#if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED) BaseMemoryManager::BaseMemoryManager(std::shared_ptr<arm_compute::IAllocator> alloc, MemoryAffinity memoryAffinity) { @@ -104,4 +104,12 @@ ClMemoryManager::CreateMemoryGroup(const std::shared_ptr<arm_compute::MemoryMana } #endif +#if defined(ARMCOMPUTEGPUFSA_ENABLED) +std::shared_ptr<arm_compute::IMemoryGroup> +GpuFsaMemoryManager::CreateMemoryGroup(const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager) +{ + return std::make_shared<arm_compute::MemoryGroup>(memoryManager); } +#endif + +}
\ No newline at end of file |