aboutsummaryrefslogtreecommitdiff
path: root/shim/sl/support_library_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shim/sl/support_library_service.cpp')
-rw-r--r--shim/sl/support_library_service.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/shim/sl/support_library_service.cpp b/shim/sl/support_library_service.cpp
new file mode 100644
index 0000000000..14556fd573
--- /dev/null
+++ b/shim/sl/support_library_service.cpp
@@ -0,0 +1,18 @@
+//
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "canonical/ArmnnDriver.hpp"
+
+#include <nnapi/IDevice.h>
+
+namespace android::nn
+{
+
+std::vector<SharedDevice> getDevices()
+{
+ return { std::make_shared<armnn_driver::ArmnnDriver>(DriverOptions()) };
+}
+
+} // namespace android::nn