[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:
Evgeny Kotov 2022-12-07 10:46:13 +01:00 committed by GitHub
parent 7b7e1d19b0
commit f8b347ecd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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<>

View File

@ -6,8 +6,6 @@
#include <ie_common.h>
// #define GNA_DEBUG
#ifdef GNA_DEBUG
/**