From 2b1f8939cbcd8ccca8f6167664f5f64537938b1e Mon Sep 17 00:00:00 2001 From: Wanglei Shen Date: Wed, 9 Aug 2023 01:19:23 +0800 Subject: [PATCH] [CPU][ARM] Fix unused variable issue for PR 18818 (#19062) --- src/plugins/intel_cpu/src/cpu_streams_calculation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp index 7b2108ffadb..77f0062817e 100644 --- a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp +++ b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp @@ -406,15 +406,15 @@ int get_model_prefer_threads(const int num_streams, // latency if (num_streams <= sockets && num_streams > 0) { if (proc_type_table[0][EFFICIENT_CORE_PROC] > 0 && proc_type_table[0][MAIN_CORE_PROC] > 0) { - bool fp_intesive = !ov::op::util::has_op_with_type(ngraphFunc); - const int int8_threshold = 4; // ~relative efficiency of the VNNI-intensive code for Big vs Little cores; - const int fp32_threshold = 2; // ~relative efficiency of the AVX2 fp32 code for Big vs Little cores; - // by default the latency case uses (faster) Big cores only, depending on the compute ratio #ifdef __APPLE__ if ((proc_type_table.size() == 1) && (proc_type_table[0][EFFICIENT_CORE_PROC] > 0)) { model_prefer = proc_type_table[0][ALL_PROC]; } #else + bool fp_intesive = !ov::op::util::has_op_with_type(ngraphFunc); + const int int8_threshold = 4; // ~relative efficiency of the VNNI-intensive code for Big vs Little cores; + const int fp32_threshold = 2; // ~relative efficiency of the AVX2 fp32 code for Big vs Little cores; + // by default the latency case uses (faster) Big cores only, depending on the compute ratio model_prefer = proc_type_table[0][MAIN_CORE_PROC] > (proc_type_table[0][EFFICIENT_CORE_PROC] / (fp_intesive ? fp32_threshold : int8_threshold)) ? proc_type_table[0][MAIN_CORE_PROC]