10 #if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED)
11 #include <arm_compute/runtime/MemoryGroup.h>
12 #include <arm_compute/runtime/IAllocator.h>
13 #include <arm_compute/runtime/IMemoryGroup.h>
14 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
17 #if defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED)
18 #include <arm_compute/runtime/CL/CLTensorAllocator.h>
39 #if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED)
54 virtual std::shared_ptr<arm_compute::IMemoryGroup>
55 CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager) = 0;
59 #if defined(ARMCOMPUTENEON_ENABLED)
73 std::shared_ptr<arm_compute::IMemoryGroup>
74 CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
override;
78 #if defined(ARMCOMPUTECL_ENABLED)
88 arm_compute::CLTensorAllocator::set_global_allocator(alloc.get());
93 std::shared_ptr<arm_compute::IMemoryGroup>
94 CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
override;
98 #if defined(ARMCOMPUTEGPUFSA_ENABLED)
99 class GpuFsaMemoryManager :
public BaseMemoryManager
106 : BaseMemoryManager(
std::move(alloc), MemoryAffinity::Buffer)
108 arm_compute::CLTensorAllocator::set_global_allocator(alloc.get());
109 m_InterLayerMemoryGroup = CreateMemoryGroup(m_InterLayerMemoryMgr);
113 std::shared_ptr<arm_compute::IMemoryGroup>
114 CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
override;