[GNA] Fixed extended debug build (#14355)
* fix build * move debug define to cmake build options * using namespace * add debug build check * remove build type check
This commit is contained in:
parent
7b7e1d19b0
commit
f8b347ecd3
@ -77,6 +77,8 @@ ie_dependent_option (ENABLE_TBBBIND_2_5 "Enable TBBBind_2_5 static usage in Open
|
||||
ie_dependent_option (ENABLE_INTEL_GNA "GNA support for OpenVINO Runtime" ON
|
||||
"NOT APPLE;NOT ANDROID;X86_64;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.4" OFF)
|
||||
|
||||
ie_option (ENABLE_INTEL_GNA_DEBUG "GNA debug build" OFF)
|
||||
|
||||
if(ENABLE_TESTS OR BUILD_SHARED_LIBS)
|
||||
set(ENABLE_IR_V7_READER_DEFAULT ON)
|
||||
else()
|
||||
|
@ -8,6 +8,10 @@ endif()
|
||||
|
||||
set(TARGET_NAME "openvino_intel_gna_plugin")
|
||||
|
||||
if (ENABLE_INTEL_GNA_DEBUG)
|
||||
add_compile_definitions(GNA_DEBUG)
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
ie_add_compiler_flags(-Wno-all)
|
||||
endif()
|
||||
|
@ -127,6 +127,7 @@ using namespace InferenceEngine;
|
||||
using namespace InferenceEngine::details;
|
||||
using namespace GNAPluginNS;
|
||||
using namespace GNAPluginNS::memory;
|
||||
using namespace ov::intel_gna::frontend;
|
||||
|
||||
namespace InferenceEngine {
|
||||
template<>
|
||||
|
@ -6,8 +6,6 @@
|
||||
|
||||
#include <ie_common.h>
|
||||
|
||||
// #define GNA_DEBUG
|
||||
|
||||
#ifdef GNA_DEBUG
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user