aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNattapat Chaimanowong <nattapat.chaimanowong@arm.com>2019-04-23 15:08:43 +0100
committerNattapat Chaimanowong <nattapat.chaimanowong@arm.com>2019-04-23 15:08:43 +0100
commit5404c01b4b0a2455aea0f5d1de0a45e2e859a466 (patch)
tree3307bc64f4613d91d4dda3a7c9a82a1d5840bc24
parent0e7ab54a751d29ea4fdc42aee55ca0fa46d7894d (diff)
downloadandroid-nn-driver-5404c01b4b0a2455aea0f5d1de0a45e2e859a466.tar.gz
IVGCVSW-2886 Add logging for driver backends
Change-Id: Ie46d78e56922dd14dbaedfb314c8412a49c5a08c Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
-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