From 5307bc10ac488261e84ac76b2dede6039ea3fe96 Mon Sep 17 00:00:00 2001 From: telsoa01 Date: Fri, 9 Mar 2018 13:51:08 +0000 Subject: Release 18.02 Change-Id: I41a89c149534a7c354a58e2c66a32cba572fc0c1 --- service.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 service.cpp (limited to 'service.cpp') diff --git a/service.cpp b/service.cpp new file mode 100644 index 00000000..742091ef --- /dev/null +++ b/service.cpp @@ -0,0 +1,32 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// See LICENSE file in the project root for full license information. +// + +#define LOG_TAG "ArmnnDriver" + +#include "ArmnnDriver.hpp" + +#include +#include + +#include +#include + +using namespace armnn_driver; +using namespace std; + +int main(int argc, char** argv) +{ + android::sp driver = new ArmnnDriver(DriverOptions(argc, argv)); + + android::hardware::configureRpcThreadpool(1, true); + if (driver->registerAsService("armnn") != android::OK) + { + ALOGE("Could not register service"); + return 1; + } + android::hardware::joinRpcThreadpool(); + ALOGE("Service exited!"); + return 1; +} -- cgit v1.2.1