blob: 742091efcabb243dde7adbe3ec53a0587353942d [file] [log] [blame]
telsoa015307bc12018-03-09 13:51:08 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5
6#define LOG_TAG "ArmnnDriver"
7
8#include "ArmnnDriver.hpp"
9
10#include <hidl/LegacySupport.h>
11#include <log/log.h>
12
13#include <string>
14#include <vector>
15
16using namespace armnn_driver;
17using namespace std;
18
19int main(int argc, char** argv)
20{
21 android::sp<ArmnnDriver> driver = new ArmnnDriver(DriverOptions(argc, argv));
22
23 android::hardware::configureRpcThreadpool(1, true);
24 if (driver->registerAsService("armnn") != android::OK)
25 {
26 ALOGE("Could not register service");
27 return 1;
28 }
29 android::hardware::joinRpcThreadpool();
30 ALOGE("Service exited!");
31 return 1;
32}