aboutsummaryrefslogtreecommitdiff
path: root/ArmnnDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ArmnnDevice.cpp')
-rw-r--r--ArmnnDevice.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ArmnnDevice.cpp b/ArmnnDevice.cpp
index b807cfa9..60bfa74b 100644
--- a/ArmnnDevice.cpp
+++ b/ArmnnDevice.cpp
@@ -12,9 +12,25 @@
#include <log/log.h>
#include <memory>
+#include <string>
using namespace android;
+namespace
+{
+
+std::string GetBackendString(const armnn_driver::DriverOptions& options)
+{
+ std::stringstream backends;
+ for (auto&& b : options.GetBackends())
+ {
+ backends << b << " ";
+ }
+ return backends.str();
+}
+
+} // anonymous namespace
+
namespace armnn_driver
{
@@ -64,6 +80,8 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
ALOGE("ArmnnDevice: Failed to setup CL runtime: %s. Device will be unavailable.", error.what());
}
#endif
+ ALOGV("ArmnnDevice: Created device with the following backends: %s",
+ GetBackendString(m_Options).c_str());
}
} // namespace armnn_driver