diff options
Diffstat (limited to 'shim')
-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 |