aboutsummaryrefslogtreecommitdiff
path: root/DriverOptions.cpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2020-05-15 15:34:03 +0100
committerKevin May <kevin.may@arm.com>2020-05-15 15:12:24 +0000
commitabc95d04dfb2462ffb42bc1facde4f45ecc65319 (patch)
tree3c90cb117cd048a4c4742e3d0929b76b7ad640df /DriverOptions.cpp
parentbe6b3c292dee16d69ed1849f7cfb3febd4568ee3 (diff)
downloadandroid-nn-driver-abc95d04dfb2462ffb42bc1facde4f45ecc65319.tar.gz
IVGCVSW-4837 Add driver service name command line option
* revert commit 8a510e8e9ed22ec0bbd295b69a6700ad0ba7cfd8 * Add driver option to give service a name, default to "armnn" Change-Id: I9755206494f637bee4c8299bf6370fc4731638c8 Signed-off-by: Kevin May <kevin.may@arm.com>
Diffstat (limited to 'DriverOptions.cpp')
-rw-r--r--DriverOptions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/DriverOptions.cpp b/DriverOptions.cpp
index 94fd5942..1f534b6e 100644
--- a/DriverOptions.cpp
+++ b/DriverOptions.cpp
@@ -76,6 +76,10 @@ DriverOptions::DriverOptions(int argc, char** argv)
po::value<std::string>(&m_RequestInputsAndOutputsDumpDir)->default_value(""),
"If non-empty, the directory where request inputs and outputs should be dumped")
+ ("service-name,n",
+ po::value<std::string>(&m_ServiceName)->default_value("armnn"),
+ "If non-empty, the driver service name to be registered")
+
("unsupported-operations,u",
po::value<std::string>(&unsupportedOperationsAsString)->default_value(""),
"If non-empty, a comma-separated list of operation indices which the driver will forcibly "