From 056be3cbe0306f4e1409c10952a8a73676a4acdd Mon Sep 17 00:00:00 2001 From: David Beck Date: Mon, 22 Oct 2018 13:16:00 +0100 Subject: IVGCVSW-1991 : refactor m_SupportedComputes in DeviceSpecs Change-Id: Ied3d54dc356f5e4f87aeb59f66423ac1f893dd01 --- src/armnn/Runtime.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/armnn/Runtime.cpp') diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp index 354a567f88..8a7023ed76 100644 --- a/src/armnn/Runtime.cpp +++ b/src/armnn/Runtime.cpp @@ -4,7 +4,8 @@ // #include "Runtime.hpp" -#include "armnn/Version.hpp" +#include +#include #include @@ -133,16 +134,9 @@ Runtime::Runtime(const CreationOptions& options) : m_ClContextControl(options.m_GpuAccTunedParameters.get(), options.m_EnableGpuProfiling) , m_NetworkIdCounter(0) + , m_DeviceSpec{BackendRegistryInstance().GetBackendIds()} { BOOST_LOG_TRIVIAL(info) << "ArmNN v" << ARMNN_VERSION << "\n"; - - m_DeviceSpec.m_SupportedComputeDevices.insert(armnn::Compute::CpuRef); - #if ARMCOMPUTECL_ENABLED - m_DeviceSpec.m_SupportedComputeDevices.insert(armnn::Compute::GpuAcc); - #endif - #if ARMCOMPUTENEON_ENABLED - m_DeviceSpec.m_SupportedComputeDevices.insert(armnn::Compute::CpuAcc); - #endif } Runtime::~Runtime() -- cgit v1.2.1