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;
85 #if defined(ARMCOMPUTENEON_ENABLED)
86 std::shared_ptr<arm_compute::IMemoryGroup>
89 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);
93 #if defined(ARMCOMPUTECL_ENABLED)
94 std::shared_ptr<arm_compute::IMemoryGroup>
97 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);
101 #if defined(ARMCOMPUTEGPUFSA_ENABLED)
102 std::shared_ptr<arm_compute::IMemoryGroup>
103 GpuFsaMemoryManager::CreateMemoryGroup(
const std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
105 return std::make_shared<arm_compute::MemoryGroup>(memoryManager);