diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2022-06-15 12:25:58 +0100 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-06-15 11:37:56 +0000 |
commit | 72b998b29f6b177c8084607dacc49327f9e87035 (patch) | |
tree | 8cf797dc7aa5f2ae632d9e5b162b4ddb0bac525d /shim/sl/canonical/ArmnnDevice.cpp | |
parent | 47c0423b29d3e37548ab45b7410659dc8cd76e9d (diff) | |
download | armnn-72b998b29f6b177c8084607dacc49327f9e87035.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
Diffstat (limited to 'shim/sl/canonical/ArmnnDevice.cpp')
-rw-r--r-- | shim/sl/canonical/ArmnnDevice.cpp | 15 |
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 |