aboutsummaryrefslogtreecommitdiff
path: root/DriverOptions.hpp
diff options
context:
space:
mode:
authorMike Kelly <mike.kelly@arm.com>2020-10-13 17:50:05 +0100
committerMike Kelly <mike.kelly@arm.com>2020-10-13 17:50:05 +0100
commit6df71fd5a6ab655a4e9400c9a42df36e2864f67d (patch)
tree02a3f7a9e115331f7bdcdbe7b00e5d51353c17d3 /DriverOptions.hpp
parent8fe50c6653e30ce3b2de7278b63610429b30dabe (diff)
downloadandroid-nn-driver-6df71fd5a6ab655a4e9400c9a42df36e2864f67d.tar.gz
IVGCVSW-5335 Documentation for fast_math
* Changed documentation for fast_math to add warning about possibly reduction in precision. * Added -h,--help option to display command line help for the driver. * Added -V,--version option to display ArmNN version information for the driver. * Changed driver to display an error and the command line help if it cannot start for any reason. * Backend no longer defaults to GpuAcc. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I270b10ec9d485fd25e25680fc29ea1fc2b0e8e1d
Diffstat (limited to 'DriverOptions.hpp')
-rw-r--r--DriverOptions.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/DriverOptions.hpp b/DriverOptions.hpp
index ba0919c1..15236521 100644
--- a/DriverOptions.hpp
+++ b/DriverOptions.hpp
@@ -34,6 +34,8 @@ public:
bool IsFastMathEnabled() const { return m_FastMathEnabled; }
bool GetFp16Enabled() const { return m_fp16Enabled; }
void SetBackends(const std::vector<armnn::BackendId>& backends) { m_Backends = backends; }
+ bool ShouldExit() const { return m_ShouldExit; }
+ int GetExitCode() const { return m_ExitCode; }
private:
std::vector<armnn::BackendId> m_Backends;
@@ -47,6 +49,8 @@ private:
bool m_EnableGpuProfiling;
bool m_fp16Enabled;
bool m_FastMathEnabled;
+ bool m_ShouldExit;
+ int m_ExitCode;
};
} // namespace armnn_driver