7 #if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED)
8 #include "arm_compute/runtime/BlobLifetimeManager.h"
9 #include "arm_compute/runtime/PoolManager.h"
10 #include "arm_compute/runtime/OffsetLifetimeManager.h"
17 #if defined(ARMCOMPUTENEON_ENABLED) || defined(ARMCOMPUTECL_ENABLED) || defined(ARMCOMPUTEGPUFSA_ENABLED)
28 std::shared_ptr<arm_compute::MemoryManagerOnDemand>
31 std::shared_ptr<arm_compute::ILifetimeManager> lifetimeManager =
nullptr;
35 lifetimeManager = std::make_shared<arm_compute::BlobLifetimeManager>();
39 lifetimeManager = std::make_shared<arm_compute::OffsetLifetimeManager>();
42 auto poolManager = std::make_shared<arm_compute::PoolManager>();
43 auto memoryManager = std::make_shared<arm_compute::MemoryManagerOnDemand>(lifetimeManager, poolManager);
50 static const size_t s_NumPools = 1;
91 #if defined(ARMCOMPUTENEON_ENABLED)
92 std::shared_ptr<arm_compute::IMemoryGroup>
95 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);
99 #if defined(ARMCOMPUTECL_ENABLED)
100 std::shared_ptr<arm_compute::IMemoryGroup>
103 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);
107 #if defined(ARMCOMPUTEGPUFSA_ENABLED)
108 std::shared_ptr<arm_compute::IMemoryGroup>
109 GpuFsaMemoryManager::CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
111 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);