aboutsummaryrefslogtreecommitdiff
path: root/service.cpp
diff options
context:
space:
mode:
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)
{