telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame^] | 1 | // |
| 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 | |
| 16 | using namespace armnn_driver; |
| 17 | using namespace std; |
| 18 | |
| 19 | int 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 | } |