diff options
Diffstat (limited to 'src/backends/backendsCommon/DynamicBackendUtils.hpp')
-rw-r--r-- | src/backends/backendsCommon/DynamicBackendUtils.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backends/backendsCommon/DynamicBackendUtils.hpp b/src/backends/backendsCommon/DynamicBackendUtils.hpp index 0a2d428fd3..f0bfd3b220 100644 --- a/src/backends/backendsCommon/DynamicBackendUtils.hpp +++ b/src/backends/backendsCommon/DynamicBackendUtils.hpp @@ -11,9 +11,14 @@ #include <string> #include <dlfcn.h> +#include <vector> #include <boost/format.hpp> +#if !defined(DYNAMIC_BACKEND_PATHS) +#define DYNAMIC_BACKEND_PATHS "" +#endif + namespace armnn { @@ -28,9 +33,13 @@ public: static bool IsBackendCompatible(const BackendVersion& backendVersion); + static std::vector<std::string> GetBackendPaths(const std::string& overrideBackendPath = ""); + static bool IsPathValid(const std::string& path); + protected: - /// Protected for testing purposes + /// Protected methods for testing purposes static bool IsBackendCompatibleImpl(const BackendVersion& backendApiVersion, const BackendVersion& backendVersion); + static std::vector<std::string> GetBackendPathsImpl(const std::string& backendPaths); private: static std::string GetDlError(); |