From 7ed56dd5808d483ab8e294f36e3ecf8e8ddd84f1 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Wed, 30 Sep 2020 20:22:56 +0100 Subject: MLCE-233 Added ability to enable fast_math through the NNAPI driver * Added -a command line option to enable fast_math on Neon/CL when launching the NNAPI driver * The invocation will look something like: /vendor/bin/hw/android.hardware.neuralnetworks@1.3-service-armnn -v -c GpuAcc -n arm-armnn -a * Enabling fast_math may cause an increase in VTS or CTS test failures due to a change in precision Signed-off-by: Mike Kelly Change-Id: Ifd8931f95efd65d3ae3aca9d9d61bd381e4e24a5 --- DriverOptions.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'DriverOptions.hpp') diff --git a/DriverOptions.hpp b/DriverOptions.hpp index b05647c5..ba0919c1 100644 --- a/DriverOptions.hpp +++ b/DriverOptions.hpp @@ -31,6 +31,7 @@ public: armnn::IGpuAccTunedParameters::Mode GetClTunedParametersMode() const { return m_ClTunedParametersMode; } armnn::IGpuAccTunedParameters::TuningLevel GetClTuningLevel() const { return m_ClTuningLevel; } bool IsGpuProfilingEnabled() const { return m_EnableGpuProfiling; } + bool IsFastMathEnabled() const { return m_FastMathEnabled; } bool GetFp16Enabled() const { return m_fp16Enabled; } void SetBackends(const std::vector& backends) { m_Backends = backends; } @@ -45,6 +46,7 @@ private: armnn::IGpuAccTunedParameters::TuningLevel m_ClTuningLevel; bool m_EnableGpuProfiling; bool m_fp16Enabled; + bool m_FastMathEnabled; }; } // namespace armnn_driver -- cgit v1.2.1