#include <ArmnnDevice.hpp>
Definition at line 15 of file ArmnnDevice.hpp.
◆ ArmnnDevice()
Definition at line 42 of file ArmnnDevice.cpp.
48 if (options.ShouldExit())
51 if (options.GetExitCode() != EXIT_SUCCESS)
62 VLOG(DRIVER) <<
"ArmnnDevice::ArmnnDevice()";
65 __android_log_print(ANDROID_LOG_DEBUG,
"ARMNN_SL",
"ArmnnDevice::ArmnnDevice()");
71 SetMinimumLogSeverity(android::base::VERBOSE);
75 SetMinimumLogSeverity(android::base::INFO);
93 catch (std::exception& error)
96 VLOG(DRIVER) <<
"ArmnnDevice: Failed to load CL tuned parameters file "
104 VLOG(DRIVER) <<
"ArmnnDevice: Failed to setup CL runtime: %s. Device will be unavailable." <<
error.what();
106 catch (std::exception& error)
108 VLOG(DRIVER) <<
"ArmnnDevice: Unknown exception: %s. Device will be unavailable." <<
error.what();
114 std::vector<armnn::BackendId> backends;
121 if (std::find(supportedDevices.cbegin(), supportedDevices.cend(), backend) == supportedDevices.cend())
123 VLOG(DRIVER) <<
"ArmnnDevice: Requested unknown backend " << backend.Get().c_str();
131 VLOG(DRIVER) <<
"ArmnnDevice: ArmNN does not support AsyncExecution with the following backend: "
132 << backend.Get().c_str();
136 backends.push_back(backend);
142 if (backends.empty())
149 VLOG(DRIVER) <<
"ArmnnDevice: Created device with the following backends: " << GetBackendString(
m_Options).c_str();
152 __android_log_print(ANDROID_LOG_DEBUG,
154 "ArmnnDevice: Created device with the following backends: %s",
References armnn::ConfigureLogging(), IRuntime::Create(), IGpuAccTunedParameters::Create(), DriverOptions::GetBackends(), DriverOptions::GetClTunedParametersFile(), DriverOptions::GetClTunedParametersMode(), DriverOptions::GetClTuningLevel(), DriverOptions::GetExitCode(), armnn::GpuAcc, armnn::HasMatchingCapability(), DriverOptions::isAsyncModelExecutionEnabled(), DriverOptions::IsGpuProfilingEnabled(), DriverOptions::IsVerboseLoggingEnabled(), ArmnnDevice::m_ClTunedParameters, IRuntime::CreationOptions::m_EnableGpuProfiling, IRuntime::CreationOptions::m_GpuAccTunedParameters, ArmnnDevice::m_Options, ArmnnDevice::m_Runtime, DriverOptions::SetBackends(), DriverOptions::ShouldExit(), and armnn::Trace.
◆ ~ArmnnDevice()
◆ ArmnnDriver
◆ m_ClTunedParameters
◆ m_Options
◆ m_Runtime
The documentation for this class was generated from the following files: