aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2022-06-15 12:25:58 +0100
committerCathal Corbett <cathal.corbett@arm.com>2022-06-15 11:37:56 +0000
commit72b998b29f6b177c8084607dacc49327f9e87035 (patch)
tree8cf797dc7aa5f2ae632d9e5b162b4ddb0bac525d
parent47c0423b29d3e37548ab45b7410659dc8cd76e9d (diff)
downloadarmnn-experimental/armnn_shim_sl.tar.gz
IVGCVSW-6960 Device not found running MLTS with Support Libraryexperimental/armnn_shim_sl
* Enabling logcat prints to show the backend MLTS is running on. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I1668cbc34fac9d6e09e91257bba4855c1d94c65c
-rw-r--r--shim/sl/canonical/ArmnnDevice.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/shim/sl/canonical/ArmnnDevice.cpp b/shim/sl/canonical/ArmnnDevice.cpp
index 3fd192630b..c40482246b 100644
--- a/shim/sl/canonical/ArmnnDevice.cpp
+++ b/shim/sl/canonical/ArmnnDevice.cpp
@@ -15,6 +15,10 @@
#include <memory>
#include <string>
+#ifdef __ANDROID__
+#include <android/log.h>
+#endif
+
namespace
{
@@ -57,6 +61,10 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
initVLogMask();
VLOG(DRIVER) << "ArmnnDevice::ArmnnDevice()";
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG, "ARMNN_SL", "ArmnnDevice::ArmnnDevice()");
+#endif
+
armnn::ConfigureLogging(false, m_Options.IsVerboseLoggingEnabled(), armnn::LogSeverity::Trace);
if (m_Options.IsVerboseLoggingEnabled())
{
@@ -127,6 +135,13 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
m_Options.SetBackends(backends);
VLOG(DRIVER) << "ArmnnDevice: Created device with the following backends: " << GetBackendString(m_Options).c_str();
+
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG,
+ "ARMNN_SL",
+ "ArmnnDevice: Created device with the following backends: %s",
+ GetBackendString(m_Options).c_str());
+#endif
}
} // namespace armnn_driver