ARMNN runtime engine supports five step logging levels.
This patch allows user to change the logging level at build time.
Change-Id: I621158be707f21dbd357da24ee00e271b34692b8
Signed-off-by: Inki Dae <inki.dae@samsung.com>
ADD_DEFINITIONS(-DGRAPH_DEBUG)
ENDIF()
+ADD_DEFINITIONS(-DARMNN_LOG_LEVEL=${ARMNN_LOG_LEVEL})
+
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
aux_source_directory(src SOURCES)
BuildRequires: pkgconfig(inference-engine-interface-common)
BuildRequires: pkgconfig(armnn)
-%define build_options -DARMNN_GRAPH_DEBUG=0
+# Log levels of ARMNN_LOG
+# Trace = 0, Debug = 1, Info = 2, Warning = 3, Error = 4, Fatal = 5
+%define build_options -DARMNN_GRAPH_DEBUG=0 -DARMNN_LOG_LEVEL=2
%description
ARM Neural Network Runtime based implementation of inference-engine-interface
#include <armnn/backends/ITensorHandle.hpp>
#include <armnnTfLiteParser/ITfLiteParser.hpp>
+#define LOG_LEVEL ARMNN_LOG_LEVEL
+
namespace InferenceEngineImpl
{
namespace ARMNNImpl
mCLTuner()
{
LOGI("ENTER");
+
+ armnn::ConfigureLogging(true, true, static_cast<armnn::LogSeverity>(LOG_LEVEL));
+ LOGI("ARMNN Logging level = %d", LOG_LEVEL);
+
LOGI("LEAVE");
}