aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/DynamicBackendUtils.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-08-05 14:12:11 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-08-07 15:04:51 +0100
commite54aa06ec19813b737513ecb8224285d98e871ba (patch)
tree36bdb824d79abec37aa15e811010e5004854a063 /src/backends/backendsCommon/DynamicBackendUtils.hpp
parent5488cfaaa1a411cb5a18c81a98b90c6e3011abdc (diff)
downloadarmnn-e54aa06ec19813b737513ecb8224285d98e871ba.tar.gz
IVGCVSW-3595 Implement the LoadDynamicBackends function in the Runtime class
* Changed the way the handle is acquired, loaded symbols are now kept local * Updated the makefiles to add more test files for the dynamic backends * Fixed the GetSharedObjects method so that the files are parsed in alphabetical order * Updated the unit tests to make them more strict wrt the order of the files * Created a new CreateDynamicBackends method in the utils class * Added new unit tests for the new function * Added LoadDynamicBackends in the Runtime class !android-nn-driver:1707 Change-Id: I1ef9ff3d5455ca6a7fd51cb7cfb3819686234f70 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/backends/backendsCommon/DynamicBackendUtils.hpp')
-rw-r--r--src/backends/backendsCommon/DynamicBackendUtils.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/backendsCommon/DynamicBackendUtils.hpp b/src/backends/backendsCommon/DynamicBackendUtils.hpp
index b327a9ea60..9c10df7efc 100644
--- a/src/backends/backendsCommon/DynamicBackendUtils.hpp
+++ b/src/backends/backendsCommon/DynamicBackendUtils.hpp
@@ -6,6 +6,7 @@
#pragma once
#include "IBackendInternal.hpp"
+#include "DynamicBackend.hpp"
#include <armnn/Exceptions.hpp>
@@ -37,6 +38,8 @@ public:
static bool IsPathValid(const std::string& path);
static std::vector<std::string> GetSharedObjects(const std::vector<std::string>& backendPaths);
+ static std::vector<DynamicBackendPtr> CreateDynamicBackends(const std::vector<std::string>& sharedObjects);
+
protected:
/// Protected methods for testing purposes
static bool IsBackendCompatibleImpl(const BackendVersion& backendApiVersion, const BackendVersion& backendVersion);