From 72b998b29f6b177c8084607dacc49327f9e87035 Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Wed, 15 Jun 2022 12:25:58 +0100 Subject: IVGCVSW-6960 Device not found running MLTS with Support Library * Enabling logcat prints to show the backend MLTS is running on. Signed-off-by: Cathal Corbett Change-Id: I1668cbc34fac9d6e09e91257bba4855c1d94c65c --- shim/sl/canonical/ArmnnDevice.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 #include +#ifdef __ANDROID__ +#include +#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 -- cgit v1.2.1