From ce3e84a8d449cbf31cee57e30f0eef6a96c0ce94 Mon Sep 17 00:00:00 2001 From: telsoa01 Date: Fri, 31 Aug 2018 09:31:35 +0100 Subject: Release 18.08 --- DriverOptions.hpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 DriverOptions.hpp (limited to 'DriverOptions.hpp') diff --git a/DriverOptions.hpp b/DriverOptions.hpp new file mode 100644 index 00000000..4a378b26 --- /dev/null +++ b/DriverOptions.hpp @@ -0,0 +1,43 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// See LICENSE file in the project root for full license information. +// + +#pragma once + +#include + +#include +#include + +namespace armnn_driver +{ + +class DriverOptions +{ +public: + DriverOptions(armnn::Compute computeDevice); + DriverOptions(int argc, char** argv); + DriverOptions(DriverOptions&& other) = default; + + armnn::Compute GetComputeDevice() const { return m_ComputeDevice; } + bool IsVerboseLoggingEnabled() const { return m_VerboseLogging; } + const std::string& GetRequestInputsAndOutputsDumpDir() const { return m_RequestInputsAndOutputsDumpDir; } + const std::set& GetForcedUnsupportedOperations() const { return m_ForcedUnsupportedOperations; } + const std::string& GetClTunedParametersFile() const { return m_ClTunedParametersFile; } + armnn::IGpuAccTunedParameters::Mode GetClTunedParametersMode() const { return m_ClTunedParametersMode; } + bool IsGpuProfilingEnabled() const { return m_EnableGpuProfiling; } + bool GetFp16Enabled() const { return m_fp16Enabled; } + +private: + armnn::Compute m_ComputeDevice; + bool m_VerboseLogging; + std::string m_RequestInputsAndOutputsDumpDir; + std::set m_ForcedUnsupportedOperations; + std::string m_ClTunedParametersFile; + armnn::IGpuAccTunedParameters::Mode m_ClTunedParametersMode; + bool m_EnableGpuProfiling; + bool m_fp16Enabled; +}; + +} // namespace armnn_driver -- cgit v1.2.1