aboutsummaryrefslogtreecommitdiff
path: root/service.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 /service.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 'service.cpp')
-rw-r--r--service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/service.cpp b/service.cpp
index 740198aa..823f0c75 100644
--- a/service.cpp
+++ b/service.cpp
@@ -18,6 +18,7 @@ using namespace std;
int main(int argc, char** argv)
{
android::sp<ArmnnDriver> driver;
+ DriverOptions driverOptions(argc, argv);
try
{
driver = new ArmnnDriver(DriverOptions(argc, argv));
@@ -32,7 +33,7 @@ int main(int argc, char** argv)
android::status_t status = android::UNKNOWN_ERROR;
try
{
- status = driver->registerAsService("arm-armnn");
+ status = driver->registerAsService(driverOptions.GetServiceName());
}
catch (const std::exception& e)
{