diff options
author | Kevin May <kevin.may@arm.com> | 2022-02-10 13:14:03 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2022-02-11 17:00:02 +0000 |
commit | 138a88cf568fbc420a310344903f7eb9dec8e1e3 (patch) | |
tree | 09dfc013e35ebbed461818e585c3a5611bda7f60 /shim/sl/support_library_service.cpp | |
parent | f414d999704e2d198aa3136bd556f33a9cc4945f (diff) | |
download | armnn-138a88cf568fbc420a310344903f7eb9dec8e1e3.tar.gz |
IVGCVSW-6226 Arm NN Shim Service and Support Library
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I542b4c4c7b0592f5153ab3d10141bed4e8f169cd
Diffstat (limited to 'shim/sl/support_library_service.cpp')
-rw-r--r-- | shim/sl/support_library_service.cpp | 19 |
1 files changed, 19 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..6b8167aeaa --- /dev/null +++ b/shim/sl/support_library_service.cpp @@ -0,0 +1,19 @@ +// +// 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() +{ + std::vector<armnn::BackendId> backends = { armnn::Compute::CpuAcc, armnn::Compute::CpuRef, armnn::Compute::GpuAcc }; + return { std::make_shared<armnn_driver::ArmnnDriver>(DriverOptions(backends)) }; +} + +} // namespace android::nn
\ No newline at end of file |