From 0a21cde8a52a28e20a6d04a3fffe845b64c7c9c0 Mon Sep 17 00:00:00 2001 From: Andrew Park Date: Thu, 22 Feb 2024 18:06:07 +0900 Subject: [PATCH] Fix build failure for unused variable --- src/plugins/intel_gpu/src/graph/primitive_inst.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/intel_gpu/src/graph/primitive_inst.cpp b/src/plugins/intel_gpu/src/graph/primitive_inst.cpp index a2c4ecc371f5c3..6730b5d8c55579 100644 --- a/src/plugins/intel_gpu/src/graph/primitive_inst.cpp +++ b/src/plugins/intel_gpu/src/graph/primitive_inst.cpp @@ -2072,14 +2072,16 @@ bool primitive_inst::is_valid_fusion() const { } void primitive_inst::add_profiling_data(instrumentation::pipeline_stage stage, bool cache_hit, std::string memalloc_info, int64_t time, bool per_iter_mode) { - int64_t curr_iter = -1; GPU_DEBUG_GET_INSTANCE(debug_config); - GPU_DEBUG_IF(debug_config->dump_prof_data_iter_params.is_enabled) { #ifdef GPU_DEBUG_CONFIG + int64_t curr_iter = -1; + GPU_DEBUG_IF(debug_config->dump_prof_data_iter_params.is_enabled) { curr_iter = get_network().get_current_iteration_num(); -#endif } GPU_DEBUG_IF(debug_config->is_target_dump_prof_data_iteration(curr_iter)) { +#else + { +#endif instrumentation::perf_counter_key key { _network.get_input_layouts(), _impl_params->input_layouts,