OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU] Apply 'bugprone-*' clang-tidy remarks (#29178)
Arseniy Obolenskiy0259dc5d4aab
diff --git a/src/plugins/intel_cpu/src/.clang-tidy b/src/plugins/intel_cpu/src/.clang-tidyindex e8110479ee2..97ce5afd010 100644--- a/src/plugins/intel_cpu/src/.clang-tidy+++ b/src/plugins/intel_cpu/src/.clang-tidy@@ -22,7 +22,12 @@### Checks that are turned off but better be enabled later:# -bugprone-narrowing-conversions# -bugprone-easily-swappable-parameters+# -bugprone-empty-catch. Better to fix, potentially hides some errors.+# -bugprone-exception-escape. There are a lot of legacy code which does not handle exceptions properly and just catches them all. Major refactoring is required to correct this.# -bugprone-implicit-widening-of-multiplication-result+# -bugprone-incorrect-roundings. There are explicit ways to perform rounding (i.e. std::floor(), std::round(), etc). Requires careful updates case by case+# -bugprone-lambda-function-name. Used by generic debug caps macro+# -bugprone-signed-char-misuse. The source code contains valid logic when pointer to the data is interpreted as int8_t (i.e. weights tensor)# -cppcoreguidelines-narrowing-conversions# -google-default-arguments,# -google-explicit-constructor,@@ -37,14 +42,20 @@Checks: >-*,+ bugprone-*,performance-*,google-*,modernize-*,cppcoreguidelines-prefer-member-initializer,readability-else-after-return,-bugprone-easily-swappable-parameters,+ -bugprone-empty-catch,+ -bugprone-exception-escape,-bugprone-implicit-widening-of-multiplication-result,+ -bugprone-incorrect-roundings,+ -bugprone-lambda-function-name,-bugprone-narrowing-conversions,+ -bugprone-signed-char-misuse,-cppcoreguidelines-narrowing-conversions,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-google-build-using-namespace,diff --git a/src/plugins/intel_cpu/src/dnnl_extension_utils.cpp b/src/plugins/intel_cpu/src/dnnl_extension_utils.cppindex 1790db0aa61..6c187801ba8 100644--- a/src/plugins/intel_cpu/src/dnnl_extension_utils.cpp+++ b/src/plugins/intel_cpu/src/dnnl_extension_utils.cpp@@ -223,7 +223,7 @@ DnnlMemoryDescPtr DnnlExtensionUtils::query_md(const const_dnnl_primitive_desc_tstd::string DnnlExtensionUtils::query_impl_info_str(const const_dnnl_primitive_desc_t& pd) {const char* res;- dnnl_status_t status = dnnl_primitive_desc_query(pd, dnnl_query_impl_info_str, 0, &res);+ dnnl_status_t status = dnnl_primitive_desc_query(pd, dnnl_query_impl_info_str, 0, reinterpret_cast<void*>(&res));if (status != dnnl_success) {OPENVINO_THROW("query_impl_info_str failed.");}diff --git a/src/plugins/intel_cpu/src/edge.cpp b/src/plugins/intel_cpu/src/edge.cppindex a274840fb4d..54c9f15cf00 100644--- a/src/plugins/intel_cpu/src/edge.cpp+++ b/src/plugins/intel_cpu/src/edge.cpp@@ -328,8 +328,6 @@ std::string Edge::hash() const {auto parentPtr = getParent();auto childPtr = getChild();- std::stringstream result;-return parentPtr->getName() + "_" + std::to_string(parent_port) + "_" + childPtr->getName() + "_" +std::to_string(child_port);}diff --git a/src/plugins/intel_cpu/src/emitters/snippets/brgemm_generic.cpp b/src/plugins/intel_cpu/src/emitters/snippets/brgemm_generic.cppindex 99b9d8533f7..a9da19c722e 100644--- a/src/plugins/intel_cpu/src/emitters/snippets/brgemm_generic.cpp+++ b/src/plugins/intel_cpu/src/emitters/snippets/brgemm_generic.cpp@@ -8,7 +8,7 @@#include "dnnl_extension_utils.h"#include "utils/general_utils.h"-#define PRINT(X) ss << #X << " = " << X << "\n"+#define PRINT(X) ss << #X << " = " << (X) << "\n"#define EQ(X) X == rhs.X#define HASH(X) seed = dnnl::impl::hash_combine(seed, X)diff --git a/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_base.cpp b/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_base.cppindex d4492967d08..50467980adc 100644--- a/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_base.cpp+++ b/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_base.cpp@@ -10,7 +10,7 @@#include "transformations/snippets/x64/op/brgemm_utils.hpp"#define DTYPE_CAST(X) static_cast<dnnl_data_type_t>(DnnlExtensionUtils::ElementTypeToDataType(X))-#define PRINT(X) ss << #X << " = " << X << "\n"+#define PRINT(X) ss << #X << " = " << (X) << "\n"#define EQ(X) X == rhs.X#define HASH(X) seed = hash_combine(seed, X)diff --git a/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_copy_b.cpp b/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_copy_b.cppindex 38bcea8ef75..ff50a9aebb5 100644--- a/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_copy_b.cpp+++ b/src/plugins/intel_cpu/src/emitters/snippets/x64/kernel_executors/brgemm_copy_b.cpp@@ -117,7 +117,7 @@ size_t BrgemmCopyBKernelConfig::StaticParams::init_hash(const dnnl_data_type_t&}#ifdef SNIPPETS_DEBUG_CAPS-# define PRINT(X) ss << #X << " = " << X << "\n"+# define PRINT(X) ss << #X << " = " << (X) << "\n"std::string BrgemmCopyBKernelConfig::to_string() const {std::stringstream ss;ss << m_static_params->to_string() << "\n";diff --git a/src/plugins/intel_cpu/src/emitters/utils.cpp b/src/plugins/intel_cpu/src/emitters/utils.cppindex 8a1c505b4a9..646c7a714c4 100644--- a/src/plugins/intel_cpu/src/emitters/utils.cpp+++ b/src/plugins/intel_cpu/src/emitters/utils.cpp@@ -7,10 +7,6 @@namespace ov::intel_cpu {std::string jit_emitter_pretty_name(const std::string& pretty_func) {-#define SAFE_SYMBOL_FINDING(idx, find) \- auto idx = (find); \- if (idx == std::string::npos || idx == 0) \- return pretty_func;// Example:// pretty_func := void ov::intel_cpu::jit_load_memory_emitter::emit_impl(const std::vector<size_t>& in, const// std::vector<size_t>& out) const begin := -----------| end :=@@ -19,7 +15,10 @@ std::string jit_emitter_pretty_name(const std::string& pretty_func) {// GCC: void foo() [with T = {type}]// clang: void foo() [T = {type}]// MSVC: void __cdecl foo<{type}>(void)- SAFE_SYMBOL_FINDING(parenthesis, pretty_func.find('('))+ auto parenthesis = pretty_func.find('(');+ if (parenthesis == std::string::npos || parenthesis == 0) {+ return pretty_func;+ }if (pretty_func[parenthesis - 1] == '>') { // To cover template on MSVCparenthesis--;size_t counter = 1;@@ -33,10 +32,16 @@ std::string jit_emitter_pretty_name(const std::string& pretty_func) {}}}- SAFE_SYMBOL_FINDING(end, pretty_func.substr(0, parenthesis).rfind("::"))- SAFE_SYMBOL_FINDING(begin, pretty_func.substr(0, end).rfind(' '))+ auto end = pretty_func.substr(0, parenthesis).rfind("::");+ if (end == std::string::npos || end == 0) {+ return pretty_func;+ }++ auto begin = pretty_func.substr(0, end).rfind(' ');+ if (begin == std::string::npos || begin == 0) {+ return pretty_func;+ }begin++;-#undef SAFE_SYMBOL_FINDINGreturn end > begin ? pretty_func.substr(begin, end - begin) : pretty_func;}diff --git a/src/plugins/intel_cpu/src/extension.cpp b/src/plugins/intel_cpu/src/extension.cppindex 04c21af393c..2735b10c7e1 100644--- a/src/plugins/intel_cpu/src/extension.cpp+++ b/src/plugins/intel_cpu/src/extension.cpp@@ -62,130 +62,131 @@ private:} // namespace-#define OP_EXTENSION(NAME) std::make_shared<ov::OpExtension<NAME>>(),--#define TYPE_RELAXED_OP_EXTENSION(NAME) std::make_shared<TypeRelaxedExtension<NAME>>(),-#if defined(OPENVINO_ARCH_X86_64)-# define OP_EXTENSION_X64(NAME) OP_EXTENSION(NAME)+# define OP_EXTENSION_X64(x) x,#else-# define OP_EXTENSION_X64(NAME)+# define OP_EXTENSION_X64(x)#endif-#define CPU_EXTENSIONS \- OP_EXTENSION(ov::intel_cpu::LeakyReluNode) \- OP_EXTENSION(ov::intel_cpu::PowerStaticNode) \- OP_EXTENSION(ov::intel_cpu::CausalMaskPreprocessNode) \- OP_EXTENSION(ov::intel_cpu::SwishNode) \- OP_EXTENSION(ov::intel_cpu::SDPAWithTransposeReshape) \- OP_EXTENSION(ov::intel_cpu::NgramNode) \- OP_EXTENSION(ov::intel_cpu::ReadValueWithSubgraph) \- OP_EXTENSION(ov::op::internal::GatherCompressed) \- OP_EXTENSION(ov::op::internal::NonMaxSuppressionIEInternal) \- OP_EXTENSION(ov::op::internal::MulticlassNmsIEInternal) \- OP_EXTENSION(ov::op::internal::AUGRUCell) \- OP_EXTENSION(ov::op::internal::AUGRUSequence) \- OP_EXTENSION(ov::op::internal::NmsStaticShapeIE<ov::op::v8::MatrixNms>) \- OP_EXTENSION(ov::op::internal::RMS) \- OP_EXTENSION(ov::op::internal::RoPE) \- OP_EXTENSION(ov::op::internal::FullyConnected) \- OP_EXTENSION(ov::op::internal::FullyConnectedCompressed) \- OP_EXTENSION(ov::op::internal::FullyConnectedQuantizedLegacy) \- OP_EXTENSION(ov::op::internal::FullyConnectedQuantized) \- OP_EXTENSION_X64(ov::intel_cpu::MHANode) \- OP_EXTENSION_X64(ov::intel_cpu::InteractionNode) \- OP_EXTENSION_X64(ov::intel_cpu::LLMMLPNode) \- OP_EXTENSION_X64(ov::intel_cpu::QKVProjectionNode) \- OP_EXTENSION_X64(ov::intel_cpu::ScaledDotProductAttentionWithKVCache) \- OP_EXTENSION_X64(ov::intel_cpu::LoadConvertSaturation) \- OP_EXTENSION_X64(ov::intel_cpu::LoadConvertTruncation) \- OP_EXTENSION_X64(ov::intel_cpu::StoreConvertSaturation) \- OP_EXTENSION_X64(ov::intel_cpu::StoreConvertTruncation) \- OP_EXTENSION_X64(ov::intel_cpu::BrgemmCPU) \- OP_EXTENSION_X64(ov::intel_cpu::BrgemmCopyB)--#define TYPE_RELAXED_EXTENSIONS \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Add) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::AvgPool) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v14::AvgPool) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Clamp) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Concat) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Convolution) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ConvolutionBackpropData) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::DepthToSpace) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Equal) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::FakeQuantize) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Greater) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::GreaterEqual) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::GroupConvolution) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::GroupConvolutionBackpropData) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Interpolate) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v4::Interpolate) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Less) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::LessEqual) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::LogicalAnd) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::LogicalNot) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::LogicalOr) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::LogicalXor) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::MatMul) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::MaxPool) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Multiply) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::NormalizeL2) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::NotEqual) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::PRelu) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Relu) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceMax) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceLogicalAnd) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceLogicalOr) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceMean) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceMin) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::ReduceSum) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Reshape) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Select) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::ShapeOf) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::ShuffleChannels) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Squeeze) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v1::Subtract) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::Unsqueeze) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v0::MVN) \- TYPE_RELAXED_OP_EXTENSION(ov::op::v6::MVN)--#ifdef SNIPPETS_DEBUG_CAPS-# define SNIPPETS_DEBUG_CAPS_EXTENSIONS \- OP_EXTENSION(ov::snippets::op::PerfCountBegin) \- OP_EXTENSION(ov::snippets::op::PerfCountEnd) \- OP_EXTENSION_X64(ov::intel_cpu::PerfCountRdtscBegin) \- OP_EXTENSION_X64(ov::intel_cpu::PerfCountRdtscEnd)+#if defined(CPU_DEBUG_CAPS)+# define OP_EXTENSION_DEBUG_CAPS(x) x,#else-# define SNIPPETS_DEBUG_CAPS_EXTENSIONS+# define OP_EXTENSION_DEBUG_CAPS(x)#endif-#define SNIPPETS_EXTENSIONS \- OP_EXTENSION(ov::snippets::op::Brgemm) \- OP_EXTENSION(ov::snippets::op::BroadcastLoad) \- OP_EXTENSION(ov::snippets::op::BroadcastMove) \- OP_EXTENSION(ov::snippets::op::ConvertSaturation) \- OP_EXTENSION(ov::snippets::op::ConvertTruncation) \- OP_EXTENSION(ov::snippets::op::Fill) \- OP_EXTENSION(ov::snippets::op::HorizonMax) \- OP_EXTENSION(ov::snippets::op::HorizonSum) \- OP_EXTENSION(ov::snippets::op::KernelStatic) \- OP_EXTENSION(ov::snippets::op::KernelDynamic) \- OP_EXTENSION(ov::snippets::op::Load) \- OP_EXTENSION(ov::snippets::op::LoadReorder) \- OP_EXTENSION(ov::snippets::op::LoopBegin) \- OP_EXTENSION(ov::snippets::op::LoopEnd) \- OP_EXTENSION(ov::snippets::op::Buffer) \- OP_EXTENSION(ov::snippets::op::Nop) \- OP_EXTENSION(ov::snippets::op::PowerStatic) \- OP_EXTENSION(ov::snippets::op::Scalar) \- OP_EXTENSION(ov::snippets::op::Store) \- OP_EXTENSION(ov::snippets::op::Subgraph) \- OP_EXTENSION(ov::snippets::op::VectorBuffer) \- OP_EXTENSION(ov::snippets::op::RankNormalization) \- OP_EXTENSION(ov::snippets::op::ReduceMax) \- OP_EXTENSION(ov::snippets::op::ReduceSum) \- OP_EXTENSION(ov::snippets::op::Reshape)+#if defined(CPU_DEBUG_CAPS) && defined(OPENVINO_ARCH_X86_64)+# define OP_EXTENSION_DEBUG_CAPS_X64(x) x,+#else+# define OP_EXTENSION_DEBUG_CAPS_X64(x)+#endif-OPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>(- {CPU_EXTENSIONS TYPE_RELAXED_EXTENSIONS SNIPPETS_EXTENSIONS SNIPPETS_DEBUG_CAPS_EXTENSIONS}));+OPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>({+ // CPU extensions+ std::make_shared<ov::OpExtension<ov::intel_cpu::LeakyReluNode>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::PowerStaticNode>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::CausalMaskPreprocessNode>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::SwishNode>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::SDPAWithTransposeReshape>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::NgramNode>>(),+ std::make_shared<ov::OpExtension<ov::intel_cpu::ReadValueWithSubgraph>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::GatherCompressed>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::NonMaxSuppressionIEInternal>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::MulticlassNmsIEInternal>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::AUGRUCell>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::AUGRUSequence>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::NmsStaticShapeIE<ov::op::v8::MatrixNms>>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::RMS>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::RoPE>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::FullyConnected>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::FullyConnectedCompressed>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::FullyConnectedQuantizedLegacy>>(),+ std::make_shared<ov::OpExtension<ov::op::internal::FullyConnectedQuantized>>(),+ // clang-format off+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::MHANode>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::InteractionNode>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::LLMMLPNode>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::QKVProjectionNode>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::ScaledDotProductAttentionWithKVCache>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::LoadConvertSaturation>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::LoadConvertTruncation>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::StoreConvertSaturation>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::StoreConvertTruncation>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::BrgemmCPU>>())+ OP_EXTENSION_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::BrgemmCopyB>>())+ // clang-format on+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Add>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::AvgPool>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v14::AvgPool>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Clamp>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Concat>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Convolution>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ConvolutionBackpropData>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::DepthToSpace>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Equal>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::FakeQuantize>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Greater>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::GreaterEqual>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::GroupConvolution>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::GroupConvolutionBackpropData>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Interpolate>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v4::Interpolate>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Less>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::LessEqual>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::LogicalAnd>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::LogicalNot>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::LogicalOr>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::LogicalXor>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::MatMul>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::MaxPool>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Multiply>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::NormalizeL2>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::NotEqual>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::PRelu>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Relu>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceMax>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceLogicalAnd>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceLogicalOr>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceMean>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceMin>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::ReduceSum>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Reshape>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Select>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::ShapeOf>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::ShuffleChannels>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Squeeze>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v1::Subtract>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::Unsqueeze>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v0::MVN>>(),+ std::make_shared<TypeRelaxedExtension<ov::op::v6::MVN>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Brgemm>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::BroadcastLoad>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::BroadcastMove>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::ConvertSaturation>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::ConvertTruncation>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Fill>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::HorizonMax>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::HorizonSum>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::KernelStatic>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::KernelDynamic>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Load>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::LoadReorder>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::LoopBegin>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::LoopEnd>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Buffer>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Nop>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::PowerStatic>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Scalar>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Store>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Subgraph>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::VectorBuffer>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::RankNormalization>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::ReduceMax>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::ReduceSum>>(),+ std::make_shared<ov::OpExtension<ov::snippets::op::Reshape>>(),+ // clang-format off+ OP_EXTENSION_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountBegin>>())+ OP_EXTENSION_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountEnd>>())+ OP_EXTENSION_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscBegin>>())+ OP_EXTENSION_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscEnd>>())+ // clang-format on+}));diff --git a/src/plugins/intel_cpu/src/graph.cpp b/src/plugins/intel_cpu/src/graph.cppindex 62edc1c96fb..7517e2682ea 100644--- a/src/plugins/intel_cpu/src/graph.cpp+++ b/src/plugins/intel_cpu/src/graph.cpp@@ -1588,11 +1588,11 @@ public:/* group all the profiling macros into a single one* to avoid cluttering a core logic */#define VERBOSE_PERF_DUMP_ITT_DEBUG_LOG(ittScope, node, config) \- VERBOSE(node, config.debugCaps.verbose); \- PERF(node, config.collectPerfCounters); \- DUMP(node, config.debugCaps, infer_count); \- OV_ITT_SCOPED_TASK(ittScope, node->profiling.execute); \- DEBUG_LOG(*node);+ VERBOSE(node, (config).debugCaps.verbose); \+ PERF(node, (config).collectPerfCounters); \+ DUMP(node, (config).debugCaps, infer_count); \+ OV_ITT_SCOPED_TASK(ittScope, (node)->profiling.execute); \+ DEBUG_LOG(*(node));inline void Graph::ExecuteNode(const NodePtr& node, SyncInferRequest* request, int numaId) const {if (request) {diff --git a/src/plugins/intel_cpu/src/graph_dumper.cpp b/src/plugins/intel_cpu/src/graph_dumper.cppindex 13b9517d168..dd4523d2353 100644--- a/src/plugins/intel_cpu/src/graph_dumper.cpp+++ b/src/plugins/intel_cpu/src/graph_dumper.cpp@@ -245,7 +245,6 @@ void serializeToXML(const Graph& graph, const std::string& path) {return;}- std::string binPath;ov::pass::Manager manager;manager.register_pass<ov::pass::Serialize>(path, NULL_STREAM, ov::pass::Serialize::Version::IR_V10);manager.run_passes(graph.dump());@@ -288,7 +287,6 @@ void summary_perf(const Graph& graph) {for (auto& node : graph.GetNodes()) { // important: graph.graphNodes are in topological orderdouble avg = node->PerfCounter().avg();auto type = node->getTypeStr() + "_" + node->getPrimitiveDescriptorType();- auto name = node->getName();total += node->PerfCounter().count() * avg;total_avg += avg;diff --git a/src/plugins/intel_cpu/src/graph_optimizer.cpp b/src/plugins/intel_cpu/src/graph_optimizer.cppindex 096f2d35054..7e6ee3db28a 100644--- a/src/plugins/intel_cpu/src/graph_optimizer.cpp+++ b/src/plugins/intel_cpu/src/graph_optimizer.cpp@@ -2134,7 +2134,7 @@ void GraphOptimizer::FuseEltwiseAndSimple(Graph& graph) {graph.RemoveEdge(remEdge);}- if (parentNode->inputShapes.size() < static_cast<size_t>(outNum + 1)) {+ if (parentNode->inputShapes.size() < static_cast<size_t>(outNum) + 1) {parentNode->inputShapes.resize(outNum + 1);}parentNode->inputShapes[outNum] = parent->getOutputShapeAtPort(inNum);diff --git a/src/plugins/intel_cpu/src/nodes/color_convert.cpp b/src/plugins/intel_cpu/src/nodes/color_convert.cppindex 7ab6cc2501d..3cb8f181635 100644--- a/src/plugins/intel_cpu/src/nodes/color_convert.cpp+++ b/src/plugins/intel_cpu/src/nodes/color_convert.cpp@@ -180,7 +180,7 @@ void jit_uni_converter::yuv_to_rgb(const variable<float[N]>& y,auto genPermutationMask = [&](int offset) {std::array<uint8_t, N> mask{};- for (uint8_t i = 0; i < mask.size(); ++i) {+ for (size_t i = 0; i < mask.size(); ++i) {mask[(i * 3 + offset) % mask.size()] = i;}return mask;diff --git a/src/plugins/intel_cpu/src/nodes/common/permute_kernel.cpp b/src/plugins/intel_cpu/src/nodes/common/permute_kernel.cppindex 458f6b124e0..6dbb3488b61 100644--- a/src/plugins/intel_cpu/src/nodes/common/permute_kernel.cpp+++ b/src/plugins/intel_cpu/src/nodes/common/permute_kernel.cpp@@ -14,6 +14,7 @@#include "dnnl_types.h"#include "nodes/executors/common/ref_transpose.hpp"#include "nodes/executors/transpose.hpp"+#include "openvino/core/except.hpp"#include "utils/bfloat16.hpp"using namespace dnnl;@@ -251,6 +252,8 @@ void PermuteKernel::optimizedExecute(const uint8_t* src_data, uint8_t* dst_data,(*permute_kernel)(&arg);});break;+ default:+ OPENVINO_THROW("Unsupported number of dimensions: " + std::to_string(jcp.n));}return;}diff --git a/src/plugins/intel_cpu/src/nodes/concat.cpp b/src/plugins/intel_cpu/src/nodes/concat.cppindex f7ffd0ba5bc..912d43e3a8e 100644--- a/src/plugins/intel_cpu/src/nodes/concat.cpp+++ b/src/plugins/intel_cpu/src/nodes/concat.cpp@@ -280,9 +280,8 @@ void Concat::selectOptimalPrimitiveDescriptor() {maxCount = it.second;convertTo = it.first;} else if (it.second == maxCount) {- if (context->isGraphQuantized() && it.first == LayoutType::nspc) {- convertTo = it.first;- } else if (it.first == LayoutType::nCsp8c || it.first == LayoutType::nCsp16c) {+ if ((context->isGraphQuantized() && it.first == LayoutType::nspc) || it.first == LayoutType::nCsp8c ||+ it.first == LayoutType::nCsp16c) {convertTo = it.first;}}diff --git a/src/plugins/intel_cpu/src/nodes/deconv.cpp b/src/plugins/intel_cpu/src/nodes/deconv.cppindex daa15d168bd..0aa1098d780 100644--- a/src/plugins/intel_cpu/src/nodes/deconv.cpp+++ b/src/plugins/intel_cpu/src/nodes/deconv.cpp@@ -252,8 +252,12 @@ Deconvolution::Deconvolution(const std::shared_ptr<ov::Node>& op, const GraphConexternOutShape = inputShapes.size() == 3;biasPort = externOutShape ? 3 : 2;- if (externOutShape && (isConstOutShape = ov::is_type<ov::op::v0::Constant>(op->get_input_node_shared_ptr(2)))) {- lastOutputSpatialDims = ov::as_type<ov::op::v0::Constant>(op->get_input_node_ptr(2))->cast_vector<int32_t>();+ if (externOutShape) {+ isConstOutShape = ov::is_type<ov::op::v0::Constant>(op->get_input_node_shared_ptr(2));+ if (isConstOutShape) {+ lastOutputSpatialDims =+ ov::as_type<ov::op::v0::Constant>(op->get_input_node_ptr(2))->cast_vector<int32_t>();+ }}if (externOutShape && isDynamicNode()) {const auto spDimsNum = getInputShapeAtPort(0).getRank() - 2;diff --git a/src/plugins/intel_cpu/src/nodes/def_conv.cpp b/src/plugins/intel_cpu/src/nodes/def_conv.cppindex f75bb81e23d..f280d1bb96a 100644--- a/src/plugins/intel_cpu/src/nodes/def_conv.cpp+++ b/src/plugins/intel_cpu/src/nodes/def_conv.cpp@@ -851,7 +851,7 @@ void DeformableConvolution::initSupportedPrimitiveDescriptors() {config.outConfs[0].constant(false);config.outConfs[0].inPlace(-1);- impl_desc_type impl_type;+ impl_desc_type impl_type = impl_desc_type::ref;const int simd_w = mayiuse(cpu::x64::avx512_core) ? 16 : 8;auto& weiDims = getInputShapeAtPort(WEI_ID).getDims();@@ -875,8 +875,6 @@ void DeformableConvolution::initSupportedPrimitiveDescriptors() {impl_type = impl_desc_type::jit_avx2;} else if (mayiuse(cpu::x64::sse41)) {impl_type = impl_desc_type::jit_sse42;- } else {- impl_type = impl_desc_type::ref;}if (!enforceRef && mayiuse(cpu::x64::sse41)) {diff --git a/src/plugins/intel_cpu/src/nodes/dft.cpp b/src/plugins/intel_cpu/src/nodes/dft.cppindex cf8c674d97c..6a42c227a3a 100644--- a/src/plugins/intel_cpu/src/nodes/dft.cpp+++ b/src/plugins/intel_cpu/src/nodes/dft.cpp@@ -420,7 +420,7 @@ void DFT::fft(float* inBuffer,for (size_t numBlocks = 1; numBlocks < nComplex; numBlocks *= 2) {blockSize = nextIterationBlockSize;nextIterationBlockSize /= 2;- if (parallelize && blockSize >= static_cast<size_t>(4 * elementsPerCacheLine)) {+ if (parallelize && blockSize >= 4 * static_cast<size_t>(elementsPerCacheLine)) {parallel_for(numBlocks, [&](const size_t block) {blockIteration(block, 1, nextIterationBlockSize);});diff --git a/src/plugins/intel_cpu/src/nodes/eltwise.cpp b/src/plugins/intel_cpu/src/nodes/eltwise.cppindex 6a018a8905b..e90740cbf81 100644--- a/src/plugins/intel_cpu/src/nodes/eltwise.cpp+++ b/src/plugins/intel_cpu/src/nodes/eltwise.cpp@@ -2063,7 +2063,7 @@ void Eltwise::execute(const dnnl::stream& strm) {std::vector<MemoryPtr> dstMemory;dstMemory.push_back(getDstMemoryAtPort(0));- eltwiseExecPtr->exec(srcMemory, dstMemory, fqDataPtrs.data());+ eltwiseExecPtr->exec(srcMemory, dstMemory, reinterpret_cast<void*>(fqDataPtrs.data()));} else {THROW_CPU_NODE_ERR("Primitive isn't created");}diff --git a/src/plugins/intel_cpu/src/nodes/executors/kleidiai/kleidiai_mm.cpp b/src/plugins/intel_cpu/src/nodes/executors/kleidiai/kleidiai_mm.cppindex 6af143451e3..eda3efc3aa2 100644--- a/src/plugins/intel_cpu/src/nodes/executors/kleidiai/kleidiai_mm.cpp+++ b/src/plugins/intel_cpu/src/nodes/executors/kleidiai/kleidiai_mm.cpp@@ -18,7 +18,7 @@#include "utils/debug_capabilities.h"#define FLOAT_MAX 3.4028235e38f-#define FLOAT_MIN -3.4028235e38f+#define FLOAT_MIN (-3.4028235e38f)namespace ov {namespace intel_cpu {@@ -159,8 +159,9 @@ void MatMulKleidiAIExecutor::execute(const MemoryArgs& memory) {}void MatMulKleidiAIExecutor::moveMemToNumaNode(int numaNodeID) {- if (curNumaNode == numaNodeID)+ if (curNumaNode == numaNodeID) {return;+ }curNumaNode = numaNodeID;mbind_move(packedWeights, numaNodeID);if (m_attrs.withBias) {diff --git a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp b/src/plugins/intel_cpu/src/nodes/fullyconnected.cppindex d643ef1c18e..46e005ddf25 100644--- a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp+++ b/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp@@ -638,9 +638,7 @@ void FullyConnected::needUpdateTensorParalelConfig() {// 2. last dim can be splited.if (tp_cfg.enable_tensor_parallel) {const auto& shape = getSrcMemoryAtPort(WEIGHTS)->getShape();- if (shape.isDynamic()) {- tp_cfg.enable_tensor_parallel = false;- } else if (shape.getDims()[0] < static_cast<size_t>(tp_cfg.w_size)) {+ if (shape.isDynamic() || shape.getDims()[0] < static_cast<size_t>(tp_cfg.w_size)) {tp_cfg.enable_tensor_parallel = false;}}diff --git a/src/plugins/intel_cpu/src/nodes/gather_tree.cpp b/src/plugins/intel_cpu/src/nodes/gather_tree.cppindex 87a26b1a9e3..a4384feea6d 100644--- a/src/plugins/intel_cpu/src/nodes/gather_tree.cpp+++ b/src/plugins/intel_cpu/src/nodes/gather_tree.cpp@@ -174,7 +174,7 @@ void GatherTree::GatherTreeExecutor::exec(const MemoryPtr& stepIdxMemPtr,for (auto parent = static_cast<int32_t>(beam); time >= 0; time--, idx -= bbSize) {if (parent < 0 || parent >= static_cast<int32_t>(beamWidth) ||- static_cast<size_t>(idx + parent) >= parentIdxSize) {+ static_cast<size_t>(idx) + parent >= parentIdxSize) {incorrectResult = true;break;}diff --git a/src/plugins/intel_cpu/src/nodes/interpolate.cpp b/src/plugins/intel_cpu/src/nodes/interpolate.cppindex afcd64885a2..d301418967a 100644--- a/src/plugins/intel_cpu/src/nodes/interpolate.cpp+++ b/src/plugins/intel_cpu/src/nodes/interpolate.cpp@@ -2492,18 +2492,18 @@ void Interpolate::prepareParams() {auto buildExecutor = [&](const InterpolateKey& key) -> std::shared_ptr<InterpolateExecutorBase> {std::shared_ptr<InterpolateExecutorBase> executor;- if ((key.nodeAttrs.mode == InterpolateMode::nearest || key.nodeAttrs.mode == InterpolateMode::linear_onnx ||- key.nodeAttrs.mode == InterpolateMode::cubic) &&- ((key.nodeAttrs.layout != InterpolateLayoutType::planar && mayiuse(cpu::x64::sse41)) ||- (mayiuse(cpu::x64::avx2) && key.nodeAttrs.inPrc == ov::element::f32))) {- executor = std::make_shared<InterpolateJitExecutor>(key.nodeAttrs,- key.srcDims,- key.dstDims,- key.dataScales,- key.attr);- } else if ((key.nodeAttrs.mode == InterpolateMode::bilinear_pillow ||- key.nodeAttrs.mode == InterpolateMode::bicubic_pillow) &&- (key.nodeAttrs.layout == InterpolateLayoutType::by_channel)) {+ bool isNearestLinearOrCubic = key.nodeAttrs.mode == InterpolateMode::nearest ||+ key.nodeAttrs.mode == InterpolateMode::linear_onnx ||+ key.nodeAttrs.mode == InterpolateMode::cubic;+ bool isPlanarLayourAndSse41 = key.nodeAttrs.layout != InterpolateLayoutType::planar && mayiuse(cpu::x64::sse41);+ bool isAvx2AndF32 = mayiuse(cpu::x64::avx2) && key.nodeAttrs.inPrc == ov::element::f32;+ bool isPillowMode = key.nodeAttrs.mode == InterpolateMode::bilinear_pillow ||+ key.nodeAttrs.mode == InterpolateMode::bicubic_pillow;+ bool isByChannelLayout = key.nodeAttrs.layout == InterpolateLayoutType::by_channel;+ bool isNearestLinearOrCubicSupported = isNearestLinearOrCubic && (isPlanarLayourAndSse41 || isAvx2AndF32);+ bool isPillowModeSupported = isPillowMode && isByChannelLayout;++ if (isNearestLinearOrCubicSupported || isPillowModeSupported) {executor = std::make_shared<InterpolateJitExecutor>(key.nodeAttrs,key.srcDims,key.dstDims,@@ -2721,9 +2721,9 @@ void Interpolate::execute(const dnnl::stream& strm) {src_data = src_data_origin;}- execPtr->exec(src_data, dst_data, postOpsDataPtrs.data());+ execPtr->exec(src_data, dst_data, reinterpret_cast<void*>(postOpsDataPtrs.data()));} else if (aclExecPtr) {- aclExecPtr->exec({srcMemPtr}, {dstMemPtr}, postOpsDataPtrs.data());+ aclExecPtr->exec({srcMemPtr}, {dstMemPtr}, reinterpret_cast<void*>(postOpsDataPtrs.data()));} else {THROW_CPU_NODE_ERR("Primitive wasn't created");}@@ -3043,7 +3043,7 @@ void Interpolate::InterpolateJitExecutor::cubicPlanar(const uint8_t* in_ptr_,arg.src_ptr[3] = static_cast<int*>(&sequenceOW[0]);arg.weight_ptr[0] = xFactor;arg.weight_ptr[1] = yFactor;- arg.work_amount = static_cast<size_t>(OW * OH);+ arg.work_amount = static_cast<size_t>(OW) * OH;arg.oc_off = static_cast<size_t>(c * sizeof(float));arg.post_op_data = post_ops_data_;(*interpolateKernel)(&arg);@@ -3069,7 +3069,7 @@ void Interpolate::InterpolateJitExecutor::pillowCGathered(const uint8_t* in_ptr_if (xPass && yPass) {size_t parallel_num = B;// IH * OW * C buf needed- auto buffer_size = static_cast<size_t>(OW * IH * C);+ auto buffer_size = static_cast<size_t>(OW) * IH * C;if (parallel_num < m_threads_num) {arg.src_ptr[1] = static_cast<uint8_t*>(&pillow_working_buf[b * buffer_size * srcDataSize]);} else {@@ -4022,7 +4022,7 @@ void Interpolate::InterpolateRefExecutor::pillowRef(const uint8_t* in_ptr_,static_cast<const uint8_t*>(&pillow_working_buf[(OW * IH * C * b + OW * IH * c) * srcDataSize]);} else {size_t threadsIdx = parallel_get_thread_num();- auto buffer_size = static_cast<size_t>(OW * IH);+ auto buffer_size = static_cast<size_t>(OW) * IH;xpass_out_ptr_nc = static_cast<uint8_t*>(&pillow_working_buf[threadsIdx * buffer_size * srcDataSize]);ypass_in_ptr_nc =static_cast<const uint8_t*>(&pillow_working_buf[threadsIdx * buffer_size * srcDataSize]);diff --git a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cppindex 971cd558629..6a85d5c2502 100644--- a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp+++ b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp@@ -1415,10 +1415,10 @@ void rotate_kv_cache(PlainTensor& key_cache,template <typename DATA_TYPE, typename KEY_CACHE_TYPE, ov::element::Type_t VALUE_PREC>struct MHAHelper {// initialize once- size_t _H;- size_t _S;- size_t _SV;- size_t _Hk;+ size_t H;+ size_t S;+ size_t SV;+ size_t Hk;size_t _h_each_group_len;size_t _block_size;size_t _nthr;@@ -1488,10 +1488,10 @@ struct MHAHelper {// aka: M:1~block_size, N:S, K:block_size// Because K and V are from cache, can use M2'=rnd_up(M2, block_size) to simplify logicauto in_type = precision_of<DATA_TYPE>::value;- _H = H;- _S = S;- _SV = SV;- _Hk = Hk;+ this->H = H;+ this->S = S;+ this->SV = SV;+ this->Hk = Hk;_h_each_group_len = h_each_group_len;_block_size = block_size;_nthr = static_cast<size_t>(parallel_get_max_threads());@@ -1517,29 +1517,29 @@ struct MHAHelper {for (size_t i = 0; i < _block_size; i++) {_qk_gemm[i] = std::make_shared<BrgemmKernel>(i + 1,_block_size,- _S,- _H * _S,+ S,+ H * S,_block_size,_weight.stride(2),false,in_type);_wv_gemm[i] =std::make_shared<BrgemmKernel>(i + 1,- _SV,+ SV,_block_size,// if it's bf16, the stride needs double due to reuse float buffer(in_type == ov::element::Type_t::f32 ? 1 : 2) * _weight.stride(2),- _SV,+ SV,_output.stride(1),false,in_type);_wv_gemm_acc[i] =std::make_shared<BrgemmKernel>(i + 1,- _SV,+ SV,_block_size,// if it's bf16, the stride needs double due to reuse float buffer(in_type == ov::element::Type_t::f32 ? 1 : 2) * _weight.stride(2),- _SV,+ SV,_output.stride(1),false,in_type,@@ -1589,8 +1589,8 @@ struct MHAHelper {}void init_reorder_buffers(size_t batch, size_t kv_len_in_blocks) {- _qk_scratch_b.resize<DATA_TYPE>({batch, kv_len_in_blocks, _Hk, _block_size * _S});- _wv_scratch_b.resize<DATA_TYPE>({batch, kv_len_in_blocks, _Hk, _block_size * rnd_up(_SV, _block_size)});+ _qk_scratch_b.resize<DATA_TYPE>({batch, kv_len_in_blocks, Hk, _block_size * S});+ _wv_scratch_b.resize<DATA_TYPE>({batch, kv_len_in_blocks, Hk, _block_size * rnd_up(SV, _block_size)});}void init_score_buffers(const PlainTensor& past_lens, const PlainTensor& subsequence_begins) {@@ -1610,7 +1610,7 @@ struct MHAHelper {total_kv_len += kv_len;}- _score_output.resize<float>({total_kv_len_aligned * _H});+ _score_output.resize<float>({total_kv_len_aligned * H});}// compute one block(such as 32 tokens) of query in M dimension: softmax(q_block*k')*v@@ -1719,7 +1719,7 @@ struct MHAHelper {// reuse float buffer, need to use float to compute offsetauto* w_ptr = reinterpret_cast<DATA_TYPE*>(_weight.ptr<float>(ithr, h, 0, 0));float* fp32_out_ptr =- q_is_xf16 ? _output.ptr<float>(ithr, 0, h, 0) : output_emb.ptr<float>(q_start, h * _SV);+ q_is_xf16 ? _output.ptr<float>(ithr, 0, h, 0) : output_emb.ptr<float>(q_start, h * SV);// for each weight block, loop through all value blockfor (size_t v_blk = 0; v_blk < cur_kv_len_blocks; v_blk++) {@@ -1748,12 +1748,12 @@ struct MHAHelper {}if (q_is_xf16) {attn_memcpy2d_kernel(_output.ptr<float>(ithr, 0, h, 0),- output_emb.ptr<DATA_TYPE>(q_start, h * _SV),+ output_emb.ptr<DATA_TYPE>(q_start, h * SV),ov::element::f32,precision_of<DATA_TYPE>::value,_output.stride(1),output_emb.stride(0),- _SV,+ SV,q_cnt);}}@@ -1803,13 +1803,13 @@ struct MHAHelper {dot_product_block_by_channel(query.ptr<DATA_TYPE>(h, pq),present_key.ptr<uint8_t>(block_number, hk),_weight.ptr<float>(ithr, h, pq) + pk,- _S,+ S,std::min(_block_size, cur_kv_len - pk));} else {dot_product_block(query.ptr<DATA_TYPE>(h, pq),present_key.ptr<KEY_CACHE_TYPE>(block_number, hk),_weight.ptr<float>(ithr, h, pq) + pk,- _S,+ S,std::min(_block_size, cur_kv_len - pk),_key_group_size);}@@ -1849,7 +1849,7 @@ struct MHAHelper {}}- memset(_output.ptr<float>(ithr), 0, q_len * _H * _SV * sizeof(float));+ memset(_output.ptr<float>(ithr), 0, q_len * H * SV * sizeof(float));for (size_t pv = 0, i = 0; pv < cur_kv_len; pv += _block_size, i++) {auto block_number = block_table[i];for (size_t pq = 0; pq < q_len; pq++) {@@ -1863,7 +1863,7 @@ struct MHAHelper {_output.ptr<float>(ithr, pq, h),_weight.ptr<float>(ithr, h, pq) + pv,v_ptr,- _SV,+ SV,std::min(_block_size, cur_kv_len - pv),_value_group_size);}@@ -1872,7 +1872,7 @@ struct MHAHelper {// convert to dstfor (size_t pq = 0; pq < q_len; pq++) {for (size_t h = hq_beg; h < hq_end; h++) {- cvt_copy(output_emb.ptr<DATA_TYPE>(pq, h * _SV), _output.ptr<float>(ithr, pq, h), 1, _SV, 0, 0);+ cvt_copy(output_emb.ptr<DATA_TYPE>(pq, h * SV), _output.ptr<float>(ithr, pq, h), 1, SV, 0, 0);}}}@@ -1900,12 +1900,12 @@ struct MHAHelper {auto q_len = query.size(2);auto kv_len_in_blocks = div_up(max_context_len, _block_size);// aligned to cache line (64bytes=16*sizeof(float)) to avoid false sharing- _weight_bhl.resize<float>({B, _H, q_len, rnd_up(max_context_len, std::max(_block_size, size_t{16}))});+ _weight_bhl.resize<float>({B, H, q_len, rnd_up(max_context_len, std::max(_block_size, size_t{16}))});// for small batches dynamic scheduler has notable overheadbool prefer_static_loop;// if less than 2 work items per thread, loop H- bool loop_hk = B * kv_len_in_blocks * _Hk <= 2 * _nthr ? false : true;+ bool loop_hk = B * kv_len_in_blocks * Hk <= 2 * _nthr ? false : true;if (B <= 32) {prefer_static_loop = true;// small batch and all batch size is same(like SDPA case)@@ -1959,13 +1959,13 @@ struct MHAHelper {dot_product_block_by_channel(query.ptr<DATA_TYPE>(b, h, pq),key_cache.ptr<uint8_t>(block_number, hk),_weight_bhl.ptr<float>(b, h, pq) + pk,- _S,+ S,std::min(_block_size, context_len - pk));} else {dot_product_block(query.ptr<DATA_TYPE>(b, h, pq),key_cache.ptr<KEY_CACHE_TYPE>(block_number, hk),_weight_bhl.ptr<float>(b, h, pq) + pk,- _S,+ S,std::min(_block_size, context_len - pk),_key_group_size);}@@ -2001,13 +2001,13 @@ struct MHAHelper {alibi_slope);};- size_t h_dims = loop_hk ? _Hk : _H;+ size_t h_dims = loop_hk ? Hk : H;if (prefer_static_loop) {parallel_for3d(B, kv_len_in_blocks, h_dims, loop_qk);- parallel_for3d(B, _H, q_len, loop_softmax);+ parallel_for3d(B, H, q_len, loop_softmax);} else {parallel_for3d_dynamic(B, kv_len_in_blocks, h_dims, loop_qk);- parallel_for3d_dynamic(B, _H, q_len, loop_softmax);+ parallel_for3d_dynamic(B, H, q_len, loop_softmax);}if (output_score) {@@ -2016,12 +2016,12 @@ struct MHAHelper {auto* src = _weight_bhl.ptr<float>(b, 0, pq);size_t src_stride = _weight_bhl.stride(2);auto* dst = output_score.ptr<float>() + _score_offsets.ptr<int32_t>()[b];- attn_reduce(dst, src, _H, cur_kv_len, src_stride);+ attn_reduce(dst, src, H, cur_kv_len, src_stride);});}// attn_w * V- _output_bhl.resize<float>({static_cast<size_t>(_nthr), B, q_len, _H, _SV});+ _output_bhl.resize<float>({static_cast<size_t>(_nthr), B, q_len, H, SV});// m_attn_w {B, H, q_len, kv_len}parallel_nt_static(_nthr, [&](const size_t ithr, const size_t nthr) {memset(_output_bhl.ptr<float>(ithr, 0, 0, 0, 0), 0, _output_bhl.stride(0) * sizeof(float));@@ -2048,7 +2048,7 @@ struct MHAHelper {_output_bhl.ptr<float>(ithr, b, pq, h),_weight_bhl.ptr<float>(b, h, pq) + pv,v_ptr,- _SV,+ SV,std::min(_block_size, context_len - pv),_value_group_size);}@@ -2057,16 +2057,16 @@ struct MHAHelper {};if (prefer_static_loop) {- parallel_for3d(B, kv_len_in_blocks, loop_hk ? _Hk : _H, loop_wk);+ parallel_for3d(B, kv_len_in_blocks, loop_hk ? Hk : H, loop_wk);} else {- parallel_for3d_dynamic(B, kv_len_in_blocks, loop_hk ? _Hk : _H, loop_wk);+ parallel_for3d_dynamic(B, kv_len_in_blocks, loop_hk ? Hk : H, loop_wk);}- parallel_for3d(B, _H, q_len, [&](size_t b, size_t h, size_t pq) {+ parallel_for3d(B, H, q_len, [&](size_t b, size_t h, size_t pq) {auto* temp = _output_bhl.ptr<float>(0, b, pq, h);size_t temp_stride = _output_bhl.stride(0);- auto* dst = output_emb.ptr<DATA_TYPE>(b, pq, h * _SV);- attn_reduce(dst, temp, _nthr, _SV, temp_stride);+ auto* dst = output_emb.ptr<DATA_TYPE>(b, pq, h * SV);+ attn_reduce(dst, temp, _nthr, SV, temp_stride);});}};@@ -2218,11 +2218,12 @@ struct MHA {k_ptr,_helper._output.template ptr<DATA_TYPE>(ithr),_helper._block_size, // N- _helper._S, // K+ _helper.S, // K_helper._block_size, // dst_stride- _helper._S, // src_stride+ _helper.S, // src_stride_helper._key_group_size, // group_size_helper._quant_key_bychannel); // quant_by_channel+if (q_is_xf16) {auto sub_byte_multiplier = get_sub_byte_multiplier(v_cache.get_precision());size_t v_stride = (block_number * v_cache.m_strides[0] + hk * v_cache.m_strides[1]) *@@ -2233,9 +2234,9 @@ struct MHA {v_ptr,_helper._output.template ptr<DATA_TYPE>(ithr),_helper._block_size,- _helper._SV,- rnd_up(_helper._SV, _helper._block_size),- _helper._SV,+ _helper.SV,+ rnd_up(_helper.SV, _helper._block_size),+ _helper.SV,_helper._value_group_size);} else {// need to decompress@@ -2248,7 +2249,7 @@ struct MHA {_helper._wv_scratch_b.template ptr<DATA_TYPE>(batch_in_reorder, kv_block, hk),v_ptr,_helper._block_size,- _helper._SV,+ _helper.SV,_helper._value_group_size);}}@@ -2262,7 +2263,7 @@ struct MHA {? false: true; // or less than 2 work items per thread, loop H- parallel_for2d_dynamic(attn_work_count, loop_hk ? Hk : _helper._H, [&](size_t w, size_t hx) {+ parallel_for2d_dynamic(attn_work_count, loop_hk ? Hk : _helper.H, [&](size_t w, size_t hx) {size_t hk, hq_beg, hq_end;if (loop_hk) {hk = hx;@@ -2285,7 +2286,7 @@ struct MHA {float* score_output = nullptr;if (output_score) {auto score_offset = _helper._score_offsets_aligned.template ptr<int32_t>()[batch_in_seq];- score_output = _helper._score_output.template ptr<float>() + score_offset * _helper._H;+ score_output = _helper._score_output.template ptr<float>() + score_offset * _helper.H;}_helper.exec_kernel_one_bh(@@ -2313,18 +2314,18 @@ struct MHA {// last blockif (q_len - q_blk * _helper._block_size <= _helper._block_size) {auto score_offset = _helper._score_offsets_aligned.template ptr<int32_t>()[batch_in_seq];- score_output = _helper._score_output.template ptr<float>() + score_offset * _helper._H;+ score_output = _helper._score_output.template ptr<float>() + score_offset * _helper.H;}}PlainTensor sub_query;- sub_query.resize({q_len, _helper._H, _helper._S}, q.ptr<DATA_TYPE>(batch_in_token));+ sub_query.resize({q_len, _helper.H, _helper.S}, q.ptr<DATA_TYPE>(batch_in_token));sub_query = sub_query.permute({1, 0, 2});_helper.exec_kernel_multiple(sub_query,v_cache,output_emb.slice(0, batch_in_token, batch_in_token + q_len)- .reshape({q_len, _helper._H * _helper._SV}),+ .reshape({q_len, _helper.H * _helper.SV}),_helper._qk_scratch_b.slice(0, batch_in_reorder, batch_in_reorder),_helper._wv_scratch_b.slice(0, batch_in_reorder, batch_in_reorder),block_indices.ptr<int32_t>() + block_indices_begins.ptr<int32_t>()[batch_in_seq],@@ -2345,11 +2346,11 @@ struct MHA {subsequence_begins.ptr<int32_t>()[b]);auto cur_kv_len = static_cast<size_t>(past_lens.ptr<int32_t>()[b]) + seq_len;auto src_offset = _helper._score_offsets_aligned.template ptr<int32_t>()[b];- auto* src = _helper._score_output.template ptr<float>() + src_offset * _helper._H;+ auto* src = _helper._score_output.template ptr<float>() + src_offset * _helper.H;size_t src_stride = rnd_up(cur_kv_len, 16);auto dst_offset = _helper._score_offsets.template ptr<int32_t>()[b];auto* dst = output_score.ptr<float>() + dst_offset;- attn_reduce(dst, src, _helper._H, cur_kv_len, src_stride);+ attn_reduce(dst, src, _helper.H, cur_kv_len, src_stride);});}}diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/gather_uni_kernel.cpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/gather_uni_kernel.cppindex 27ac07c4356..80dacd375eb 100644--- a/src/plugins/intel_cpu/src/nodes/kernels/x64/gather_uni_kernel.cpp+++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/gather_uni_kernel.cpp@@ -1031,7 +1031,7 @@ void jitUniGatherKernel<x64::avx2>::fillRestWorkMask(Vmask& kDstMask,mov(rOnes, 0xFFFFFFFF);Xbyak::Xmm xmmAux(vAux.getIdx());uni_vmovups(kDstMask, vmmZeros);- for (uint8_t i = 0; i < idxElPerVec; i++) {+ for (size_t i = 0; i < idxElPerVec; i++) {cmp(rAux0, 0);je(lEnd, T_NEAR);diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/jit_kernel_base.cpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/jit_kernel_base.cppindex 54cda7843a5..7aa18674493 100644--- a/src/plugins/intel_cpu/src/nodes/kernels/x64/jit_kernel_base.cpp+++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/jit_kernel_base.cpp@@ -415,7 +415,7 @@ void JitKernelBase::fillRestWorkMask(const Xbyak::Xmm& xmmDstMask,auto elPerVec = x64::cpu_isa_traits<x64::sse41>::vlen / typeSize;mov(r64Ones, 0xFFFFFFFFFFFFFFFF);- for (uint8_t i = 0; i < elPerVec; i++) {+ for (uint64_t i = 0; i < elPerVec; i++) {cmp(rWorkRest, i);jle(lEnd, T_NEAR);@@ -448,7 +448,7 @@ void JitKernelBase::fillRestWorkMask(const Xbyak::Ymm& ymmDstMask,uni_vpxor(ymmDstMask, ymmDstMask, ymmDstMask);for (uint8_t i = 0; i < 2; i++) {Xbyak::Label lPerm;- for (uint8_t j = 0; j < elPerVec; j++) {+ for (uint64_t j = 0; j < elPerVec; j++) {cmp(rWorkRest, i * elPerVec + j);jle(i == 0 ? lEnd : lPerm, T_NEAR);diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/random_uniform.cpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/random_uniform.cppindex 54ec2403141..d6a254f34d2 100644--- a/src/plugins/intel_cpu/src/nodes/kernels/x64/random_uniform.cpp+++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/random_uniform.cpp@@ -19,16 +19,16 @@ namespace ov::intel_cpu::kernel::random_uniform {func(vector, aux_register);#define BROADCAST_PARAM(func, vector, aux_register, param_args_offset) \- mov(aux_register, ptr[r64_params + param_args_offset]); \+ mov(aux_register, ptr[r64_params + (param_args_offset)]); \func(vector, ptr[aux_register]);-#define INIT_ARR(A, V, R, T) \- static const T A[8] = {V, V, V, V, V, V, V, V}; \- if (isa == x64::avx2) { \- mov(R, reinterpret_cast<uintptr_t>(A)); \- } else { \- static const T* A##_aligned = A + (reinterpret_cast<int64_t>(A) % 16) / sizeof(T); \- mov(R, reinterpret_cast<uintptr_t>(A##_aligned)); \+#define INIT_ARR(A, V, R, T) \+ static const T A[8] = {V, V, V, V, V, V, V, V}; \+ if (isa == x64::avx2) { \+ mov(R, reinterpret_cast<uintptr_t>(A)); \+ } else { \+ static const T* A##_aligned = (A) + (reinterpret_cast<int64_t>(A) % 16) / sizeof(T); \+ mov(R, reinterpret_cast<uintptr_t>(A##_aligned)); \}union FloatAsBits {diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/registers_pool.hpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/registers_pool.hppindex 3ebfdc677d7..ad06730b53f 100644--- a/src/plugins/intel_cpu/src/nodes/kernels/x64/registers_pool.hpp+++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/registers_pool.hpp@@ -369,7 +369,7 @@ inline RegistersPool::Ptr RegistersPool::create(dnnl::impl::cpu::x64::cpu_isa_tstd::initializer_list<Xbyak::Reg> regsToExclude) {#define ISA_SWITCH_CASE(isa) \case isa: \- return std::make_shared<IsaRegistersPool<isa>>(regsToExclude);+ return std::make_shared<IsaRegistersPool<(isa)>>(regsToExclude);switch (isa) {ISA_SWITCH_CASE(dnnl::impl::cpu::x64::sse41)ISA_SWITCH_CASE(dnnl::impl::cpu::x64::avx)diff --git a/src/plugins/intel_cpu/src/nodes/llm_mlp.cpp b/src/plugins/intel_cpu/src/nodes/llm_mlp.cppindex 5cab7f87000..12bb10122cb 100644--- a/src/plugins/intel_cpu/src/nodes/llm_mlp.cpp+++ b/src/plugins/intel_cpu/src/nodes/llm_mlp.cpp@@ -44,7 +44,7 @@ public:bool is_quantized = config.down_quantized;auto reg_blk_K_size = is_quantized ? REG_BLK_K_SIZE_I8 : REG_BLK_K_SIZE;- auto cache_blk_k_size = is_quantized ? CACHE_BLK_K_SIZE : CACHE_BLK_K_SIZE;+ auto cache_blk_k_size = CACHE_BLK_K_SIZE;auto weight_element_size = is_quantized ? sizeof(int8_t) : sizeof(ov::float16);OPENVINO_ASSERT((N % REG_BLK_N_SIZE) == 0);diff --git a/src/plugins/intel_cpu/src/nodes/memory.cpp b/src/plugins/intel_cpu/src/nodes/memory.cppindex f8000800efe..274a46bd100 100644--- a/src/plugins/intel_cpu/src/nodes/memory.cpp+++ b/src/plugins/intel_cpu/src/nodes/memory.cpp@@ -861,7 +861,7 @@ void MemoryInput::runStatic(dnnl::stream strm) {void MemoryInput::resolveInPlaceEdges(Edge::LOOK look) {if (!(look & Edge::LOOK_UP)) {- Node::resolveInPlaceEdges(look);+ ov::intel_cpu::node::Input::resolveInPlaceEdges(look);return;}@@ -1017,7 +1017,7 @@ void MemoryInputSDPA::runDynamic(dnnl::stream strm) {void MemoryInputSDPA::resolveInPlaceEdges(Edge::LOOK look) {if (getParentEdgeAt(0)) {- Node::resolveInPlaceEdges(look);+ ov::intel_cpu::node::Input::resolveInPlaceEdges(look);} else {auto memDesc = getBaseMemDescAtOutputPort(0);for (auto&& edge : getChildEdgesAtPort(0)) { // always only one child portdiff --git a/src/plugins/intel_cpu/src/nodes/mvn.cpp b/src/plugins/intel_cpu/src/nodes/mvn.cppindex 5b89bb395f2..cdaf8bf3097 100644--- a/src/plugins/intel_cpu/src/nodes/mvn.cpp+++ b/src/plugins/intel_cpu/src/nodes/mvn.cpp@@ -2316,9 +2316,9 @@ void MVN::execute(const dnnl::stream& strm) {if (execPtr) {auto* dst_data = dstMemPtr->getDataAs<uint8_t>();auto* src_data = srcMemPtr->getDataAs<uint8_t>();- execPtr->exec(src_data, dst_data, postOpsDataPtrs.data(), shape5D);+ execPtr->exec(src_data, dst_data, reinterpret_cast<void*>(postOpsDataPtrs.data()), shape5D);} else if (aclExecPtr) {- aclExecPtr->exec({srcMemPtr}, {dstMemPtr}, postOpsDataPtrs.data());+ aclExecPtr->exec({srcMemPtr}, {dstMemPtr}, reinterpret_cast<void*>(postOpsDataPtrs.data()));} else {THROW_CPU_NODE_ERR("Primitive wasn't created");}diff --git a/src/plugins/intel_cpu/src/nodes/non_zero.cpp b/src/plugins/intel_cpu/src/nodes/non_zero.cppindex 988c93b2b68..db18d7b314a 100644--- a/src/plugins/intel_cpu/src/nodes/non_zero.cpp+++ b/src/plugins/intel_cpu/src/nodes/non_zero.cpp@@ -85,7 +85,7 @@ std::vector<size_t> NonZero::getNonZeroElementsCount(const T* src, const Shape&}default: {threadsCount = parallel_get_max_threads();- if (inSize < static_cast<size_t>(blockSize * threadsCount)) {+ if (inSize < static_cast<size_t>(blockSize) * threadsCount) {threadsCount = 1;}diff --git a/src/plugins/intel_cpu/src/nodes/priorbox.cpp b/src/plugins/intel_cpu/src/nodes/priorbox.cppindex ad6abb65184..3161ca7564e 100644--- a/src/plugins/intel_cpu/src/nodes/priorbox.cpp+++ b/src/plugins/intel_cpu/src/nodes/priorbox.cpp@@ -112,7 +112,7 @@ bool PriorBox::needShapeInfer() const {const int* in_data = memory->getDataAs<int>();const int h = in_data[0];const int w = in_data[1];- const auto output = static_cast<size_t>(4 * h * w * number_of_priors);+ const auto output = static_cast<size_t>(4) * h * w * number_of_priors;return outputShape[1] != output;}@@ -220,8 +220,8 @@ void PriorBox::execute(const dnnl::stream& strm) {float box_height_ratio = fixed_size[s] * 0.5f / ar;for (int64_t r = 0; r < density_; ++r) {for (int64_t c = 0; c < density_; ++c) {- float center_x_temp = center_x - fixed_size_ / 2 + shift / 2.f + c * shift;- float center_y_temp = center_y - fixed_size_ / 2 + shift / 2.f + r * shift;+ float center_x_temp = center_x - fixed_size_ / 2.f + shift / 2.f + c * shift;+ float center_y_temp = center_y - fixed_size_ / 2.f + shift / 2.f + r * shift;calculate_data(center_x_temp, center_y_temp, box_width_ratio, box_height_ratio, true);}}@@ -232,8 +232,8 @@ void PriorBox::execute(const dnnl::stream& strm) {auto shift = static_cast<int64_t>(fixed_size[s] / density_);for (int64_t r = 0; r < density_; ++r) {for (int64_t c = 0; c < density_; ++c) {- float center_x_temp = center_x - fixed_size_ / 2 + shift / 2.f + c * shift;- float center_y_temp = center_y - fixed_size_ / 2 + shift / 2.f + r * shift;+ float center_x_temp = center_x - fixed_size_ / 2.f + shift / 2.f + c * shift;+ float center_y_temp = center_y - fixed_size_ / 2.f + shift / 2.f + r * shift;calculate_data(center_x_temp, center_y_temp, box_width, box_height, true);}}@@ -251,8 +251,8 @@ void PriorBox::execute(const dnnl::stream& strm) {float box_height_ratio = fixed_size[s] * 0.5f / ar;for (int64_t r = 0; r < density_; ++r) {for (int64_t c = 0; c < density_; ++c) {- float center_x_temp = center_x - fixed_size_ / 2 + shift / 2.f + c * shift;- float center_y_temp = center_y - fixed_size_ / 2 + shift / 2.f + r * shift;+ float center_x_temp = center_x - fixed_size_ / 2.f + shift / 2.f + c * shift;+ float center_y_temp = center_y - fixed_size_ / 2.f + shift / 2.f + r * shift;calculate_data(center_x_temp, center_y_temp, box_width_ratio, box_height_ratio, true);}}diff --git a/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp b/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cppindex fed5b4bfbf0..d3061b78ead 100644--- a/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp+++ b/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp@@ -65,7 +65,7 @@ bool PriorBoxClustered::needShapeInfer() const {const int* in_data = getSrcDataAtPortAs<int>(0);const int h = in_data[0];const int w = in_data[1];- const auto output = static_cast<size_t>(4 * h * w * number_of_priors);+ const auto output = static_cast<size_t>(4) * h * w * number_of_priors;return output_shape[1] != output;}diff --git a/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp b/src/plugins/intel_cpu/src/nodes/qkv_proj.cppindex 09a63797d6e..97b04b2a6a6 100644--- a/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp+++ b/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp@@ -430,6 +430,7 @@ bool QKVProjection::isSupportedOperation(const std::shared_ptr<const ov::Node>&errorMessage = "QKVProjection needs at least 3 cores to work";return false;}+ // NOLINTNEXTLINE(bugprone-integer-division)float unbalance_ratio = static_cast<float>(concurrency % 3) / static_cast<float>(concurrency / 3);if (unbalance_ratio > 0.2f) {errorMessage = "QKVProjection needs number of cores to be nearly multiple of 3";diff --git a/src/plugins/intel_cpu/src/nodes/reduce.cpp b/src/plugins/intel_cpu/src/nodes/reduce.cppindex 6b01e56c1cf..4887149b142 100644--- a/src/plugins/intel_cpu/src/nodes/reduce.cpp+++ b/src/plugins/intel_cpu/src/nodes/reduce.cpp@@ -3003,7 +3003,7 @@ inline void Reduce::reduce_kernel_process(const uint8_t* in_p,size_t reduce_w,size_t work_batch,const int* tab_idx) {- const float divisor = apply_division ? static_cast<float>(IB * IC * ID * IH * IW / (OB * OC * OD * OH * OW)) : 1;+ const float divisor = apply_division ? static_cast<float>(IB * IC * ID * IH * IW) / (OB * OC * OD * OH * OW) : 1;auto arg = jit_reduce_call_args();arg.src = static_cast<const void*>(in_p);arg.idx = tab_idx;diff --git a/src/plugins/intel_cpu/src/nodes/topk.cpp b/src/plugins/intel_cpu/src/nodes/topk.cppindex bb16badafd0..3fc7a330912 100644--- a/src/plugins/intel_cpu/src/nodes/topk.cpp+++ b/src/plugins/intel_cpu/src/nodes/topk.cpp@@ -2040,15 +2040,15 @@ void TopK::preset_params() {blk_size = 8;}+ bool can_use_heap_sort =+ (layout == TopKLayoutType::topk_ncsp || layout == TopKLayoutType::topk_nspc) && topk_innermost;+ bool use_bubble_sort = stable || !can_use_heap_sort;if (isDynamicNode()) {- if (stable) {+ if (use_bubble_sort) {algorithm = TopKAlgorithm::topk_bubble_sort;bubble_inplace = false;- } else if ((layout == TopKLayoutType::topk_ncsp || layout == TopKLayoutType::topk_nspc) && topk_innermost) {- algorithm = TopKAlgorithm::topk_heap_sort;} else {- algorithm = TopKAlgorithm::topk_bubble_sort;- bubble_inplace = false;+ algorithm = TopKAlgorithm::topk_heap_sort;}}}diff --git a/src/plugins/intel_cpu/src/nodes/unique.cpp b/src/plugins/intel_cpu/src/nodes/unique.cppindex 420bf78278d..3d886f39d0f 100644--- a/src/plugins/intel_cpu/src/nodes/unique.cpp+++ b/src/plugins/intel_cpu/src/nodes/unique.cpp@@ -142,16 +142,16 @@ void Unique::execute(const dnnl::stream& strm) {OV_CASE(ov::element::i32, int32_t),OV_CASE(ov::element::i8, int8_t),OV_CASE(ov::element::u8, uint8_t))- } else {- OV_SWITCH(intel_cpu,- slicedExec,- this,- dataPrecision,- OV_CASE(ov::element::f32, float),- OV_CASE(ov::element::i32, int32_t),- OV_CASE(ov::element::i8, int8_t),- OV_CASE(ov::element::u8, uint8_t))- }+ return;+ }+ OV_SWITCH(intel_cpu,+ slicedExec,+ this,+ dataPrecision,+ OV_CASE(ov::element::f32, float),+ OV_CASE(ov::element::i32, int32_t),+ OV_CASE(ov::element::i8, int8_t),+ OV_CASE(ov::element::u8, uint8_t))}void Unique::executeDynamicImpl(const dnnl::stream& strm) {diff --git a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cppindex 25d29aa23e5..54023e354d7 100644--- a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp+++ b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp@@ -85,10 +85,10 @@ impl_desc_type parse_impl_name(std::string impl_desc_name) {}const char* impl_type_to_string(impl_desc_type type) {-#define CASE(_type) \- do { \- if (type == _type) \- return #_type; \+#define CASE(_type) \+ do { \+ if (type == (_type)) \+ return #_type; \} while (0)CASE(unknown);CASE(undef);diff --git a/src/plugins/intel_cpu/src/shape_inference/custom/strided_slice.cpp b/src/plugins/intel_cpu/src/shape_inference/custom/strided_slice.cppindex f0a9d8ef260..c2237f2f3d9 100644--- a/src/plugins/intel_cpu/src/shape_inference/custom/strided_slice.cpp+++ b/src/plugins/intel_cpu/src/shape_inference/custom/strided_slice.cpp@@ -4,6 +4,7 @@#include "strided_slice.hpp"+#include "openvino/core/type.hpp"#include "shape_inference/shape_inference.hpp"#include "slice_shape_inference.hpp"#include "utils.hpp"@@ -84,10 +85,7 @@ Result StridedSliceShapeInfer::infer(const std::vector<std::reference_wrapper<co}ShapeInferPtr StridedSliceShapeInferFactory::makeShapeInfer() const {- if (const auto Slice_op = ov::as_type_ptr<const ov::op::v8::Slice>(m_op)) {- return make_shape_inference(m_op);- }- if (const auto SliceScatter_op = ov::as_type_ptr<const ov::op::v15::SliceScatter>(m_op)) {+ if (ov::is_type_any_of<const ov::op::v8::Slice, const ov::op::v15::SliceScatter>(m_op)) {return make_shape_inference(m_op);}if (const auto StridedSlice_op = ov::as_type_ptr<const ov::op::v1::StridedSlice>(m_op)) {diff --git a/src/plugins/intel_cpu/src/shape_inference/shape_inference.cpp b/src/plugins/intel_cpu/src/shape_inference/shape_inference.cppindex 2c674965cce..acd15a466a1 100644--- a/src/plugins/intel_cpu/src/shape_inference/shape_inference.cpp+++ b/src/plugins/intel_cpu/src/shape_inference/shape_inference.cpp@@ -425,8 +425,8 @@ using namespace ov::opset10;// Helper macros to make map entries#define _OV_OP_SHAPE_INFER_VA_REG(OP, ...) \{ OP::get_type_info_static(), make_shape_infer<__VA_ARGS__> }-#define _OV_OP_SHAPE_INFER_MASK_REG(OP, SHAPE_INFER, MASK) _OV_OP_SHAPE_INFER_VA_REG(OP, SHAPE_INFER, OP, MASK)-#define _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(OP, SHAPE_INFER) _OV_OP_SHAPE_INFER_VA_REG(OP, SHAPE_INFER)+#define OV_OP_SHAPE_INFER_MASK_REG(OP, SHAPE_INFER, MASK) _OV_OP_SHAPE_INFER_VA_REG(OP, SHAPE_INFER, OP, MASK)+#define OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(OP, SHAPE_INFER) _OV_OP_SHAPE_INFER_VA_REG(OP, SHAPE_INFER)// Helper types for IStaticShapeInfer makers.using IStaticShapeInferFactory =@@ -439,179 +439,179 @@ using IStaticShapeInferFactory =template <>const IStaticShapeInferFactory::TRegistry IStaticShapeInferFactory::registry{// opset16- _OV_OP_SHAPE_INFER_MASK_REG(op::v16::ISTFT, ShapeInferTA, util::bit::mask(2, 3, 4)),- _OV_OP_SHAPE_INFER_MASK_REG(op::v16::SegmentMax, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v16::ISTFT, ShapeInferTA, util::bit::mask(2, 3, 4)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v16::SegmentMax, ShapeInferTA, util::bit::mask(1, 2)),// opset15- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::Squeeze, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::SearchSorted, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::StringTensorUnpack, ShapeInferTA, util::bit::mask(0)),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::StringTensorPack, ShapeInferTA, util::bit::mask(0, 1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset15::EmbeddingBagOffsets, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset15::EmbeddingBagPacked, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::Col2Im, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::ScatterNDUpdate, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset15::SliceScatter, ShapeInferTA, util::bit::mask(2, 3, 4, 5)),- _OV_OP_SHAPE_INFER_MASK_REG(op::v15::STFT, ShapeInferTA, util::bit::mask(2, 3)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::Squeeze, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::SearchSorted, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::StringTensorUnpack, ShapeInferTA, util::bit::mask(0)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::StringTensorPack, ShapeInferTA, util::bit::mask(0, 1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset15::EmbeddingBagOffsets, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset15::EmbeddingBagPacked, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::Col2Im, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::ScatterNDUpdate, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset15::SliceScatter, ShapeInferTA, util::bit::mask(2, 3, 4, 5)),+ OV_OP_SHAPE_INFER_MASK_REG(op::v15::STFT, ShapeInferTA, util::bit::mask(2, 3)),// opset14- _OV_OP_SHAPE_INFER_MASK_REG(opset14::Inverse, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset14::MaxPool, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset14::AvgPool, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset14::Inverse, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset14::MaxPool, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset14::AvgPool, ShapeInferPaddingTA, util::bit::mask()),// opset13- _OV_OP_SHAPE_INFER_MASK_REG(opset13::Multinomial, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset13::ScaledDotProductAttention, ShapeInferTA, util::bit::mask(3, 5)),+ OV_OP_SHAPE_INFER_MASK_REG(opset13::Multinomial, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset13::ScaledDotProductAttention, ShapeInferTA, util::bit::mask(3, 5)),// opset12- _OV_OP_SHAPE_INFER_MASK_REG(opset12::Pad, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset12::ScatterElementsUpdate, ShapeInferTA, util::bit::mask(3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset12::Pad, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset12::ScatterElementsUpdate, ShapeInferTA, util::bit::mask(3)),// opset11- _OV_OP_SHAPE_INFER_MASK_REG(opset11::Interpolate, ShapeInferPaddingTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset11::TopK, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset11::Interpolate, ShapeInferPaddingTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset11::TopK, ShapeInferTA, util::bit::mask(1)),// opset9- _OV_OP_SHAPE_INFER_MASK_REG(opset9::Eye, ShapeInferTA, util::bit::mask(0, 1, 3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset9::GridSample, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset9::IRDFT, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset9::RDFT, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset9::ROIAlign, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset9::Eye, ShapeInferTA, util::bit::mask(0, 1, 3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset9::GridSample, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset9::IRDFT, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset9::RDFT, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset9::ROIAlign, ShapeInferTA, util::bit::mask()),// opset8- _OV_OP_SHAPE_INFER_MASK_REG(opset8::AdaptiveAvgPool, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::AdaptiveMaxPool, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::DeformableConvolution, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::DetectionOutput, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::Gather, ShapeInferTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::GatherND, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::I420toBGR, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::I420toRGB, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::MatrixNms, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::MaxPool, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::NV12toBGR, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::NV12toRGB, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::PriorBox, ShapeInferTA, util::bit::mask(0)),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::RandomUniform, ShapeInferTA, util::bit::mask(0, 1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset8::Slice, ShapeInferTA, util::bit::mask(1, 2, 3, 4)),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset8::Softmax, ShapeInferCopy),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::AdaptiveAvgPool, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::AdaptiveMaxPool, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::DeformableConvolution, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::DetectionOutput, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::Gather, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::GatherND, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::I420toBGR, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::I420toRGB, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::MatrixNms, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::MaxPool, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::NV12toBGR, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::NV12toRGB, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::PriorBox, ShapeInferTA, util::bit::mask(0)),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::RandomUniform, ShapeInferTA, util::bit::mask(0, 1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset8::Slice, ShapeInferTA, util::bit::mask(1, 2, 3, 4)),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset8::Softmax, ShapeInferCopy),// opset7- _OV_OP_SHAPE_INFER_MASK_REG(opset7::DFT, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset7::Einsum, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset7::IDFT, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset7::Roll, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset7::DFT, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset7::Einsum, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset7::IDFT, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset7::Roll, ShapeInferTA, util::bit::mask(2)),_OV_OP_SHAPE_INFER_VA_REG(opset7::Gather, ShapeInferTA, op::util::GatherBase, util::bit::mask(2)),// opset6- _OV_OP_SHAPE_INFER_MASK_REG(opset6::CTCGreedyDecoderSeqLen, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronDetectionOutput, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronGenerateProposalsSingleImage, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronPriorGridGenerator, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronROIFeatureExtractor, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronTopKROIs, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset6::GatherElements, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::Assign, ShapeInferCopy),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::MVN, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::ReadValue, ShapeInferCopy),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::CTCGreedyDecoderSeqLen, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronDetectionOutput, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronGenerateProposalsSingleImage, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronPriorGridGenerator, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronROIFeatureExtractor, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::ExperimentalDetectronTopKROIs, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset6::GatherElements, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::Assign, ShapeInferCopy),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::MVN, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset6::ReadValue, ShapeInferCopy),// opset5- _OV_OP_SHAPE_INFER_MASK_REG(opset5::GatherND, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset5::GRUSequence, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset5::LSTMSequence, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset5::RNNSequence, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset5::BatchNormInference, ShapeInferBase),+ OV_OP_SHAPE_INFER_MASK_REG(opset5::GatherND, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset5::GRUSequence, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset5::LSTMSequence, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset5::RNNSequence, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset5::BatchNormInference, ShapeInferBase),// opset4- _OV_OP_SHAPE_INFER_MASK_REG(opset4::CTCLoss, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::Interpolate, ShapeInferPaddingTA, util::bit::mask(1, 2, 3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::LSTMCell, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::Proposal, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::Range, ShapeInferTA, util::bit::mask(0, 1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::ReduceL1, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::ReduceL2, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset4::ScatterNDUpdate, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset4::Swish, ShapeInferBase),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::CTCLoss, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::Interpolate, ShapeInferPaddingTA, util::bit::mask(1, 2, 3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::LSTMCell, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::Proposal, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::Range, ShapeInferTA, util::bit::mask(0, 1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::ReduceL1, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::ReduceL2, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset4::ScatterNDUpdate, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset4::Swish, ShapeInferBase),// opset3- _OV_OP_SHAPE_INFER_MASK_REG(opset3::Assign, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::Broadcast, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::Bucketize, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingBagOffsetsSum, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingBagPackedSum, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingSegmentsSum, ShapeInferTA, util::bit::mask(3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::ExtractImagePatches, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::GRUCell, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::ROIAlign, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::ScatterElementsUpdate, ShapeInferTA, util::bit::mask(3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::ShapeOf, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset3::TopK, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::CumSum, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::ReadValue, ShapeInferCopy),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::ScatterUpdate, ShapeInferBase),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::Assign, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::Broadcast, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::Bucketize, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingBagOffsetsSum, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingBagPackedSum, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::EmbeddingSegmentsSum, ShapeInferTA, util::bit::mask(3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::ExtractImagePatches, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::GRUCell, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::ROIAlign, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::ScatterElementsUpdate, ShapeInferTA, util::bit::mask(3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::ShapeOf, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset3::TopK, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::CumSum, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::ReadValue, ShapeInferCopy),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset3::ScatterUpdate, ShapeInferBase),// opset2- _OV_OP_SHAPE_INFER_MASK_REG(opset2::BatchToSpace, ShapeInferTA, util::bit::mask(1, 2, 3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset2::PSROIPooling, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset2::RegionYolo, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset2::ReorgYolo, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset2::ROIPooling, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset2::SpaceToBatch, ShapeInferTA, util::bit::mask(1, 2, 3)),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset2::MVN, ShapeInferBase),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::BatchToSpace, ShapeInferTA, util::bit::mask(1, 2, 3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::PSROIPooling, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::RegionYolo, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::ReorgYolo, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::ROIPooling, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset2::SpaceToBatch, ShapeInferTA, util::bit::mask(1, 2, 3)),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset2::MVN, ShapeInferBase),// opset1- _OV_OP_SHAPE_INFER_MASK_REG(opset1::AvgPool, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::BinaryConvolution, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Broadcast, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Concat, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Convolution, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ConvolutionBackpropData, ShapeInferPaddingTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::CTCGreedyDecoder, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::DeformableConvolution, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::DeformablePSROIPooling, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::DepthToSpace, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::DetectionOutput, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::FakeQuantize, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Gather, ShapeInferTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::GatherTree, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::GroupConvolution, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::GroupConvolutionBackpropData, ShapeInferPaddingTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Interpolate, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::LSTMCell, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::MatMul, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::MaxPool, ShapeInferPaddingTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::OneHot, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Pad, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::PriorBox, ShapeInferTA, util::bit::mask(0)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::PriorBoxClustered, ShapeInferTA, util::bit::mask(0)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Proposal, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Range, ShapeInferTA, util::bit::mask(0, 1, 2)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceLogicalAnd, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceLogicalOr, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMax, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMean, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMin, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceProd, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceSum, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Reshape, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Reverse, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ReverseSequence, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::RNNCell, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Select, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ShapeOf, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::ShuffleChannels, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::SpaceToDepth, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Split, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Squeeze, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::StridedSlice, ShapeInferTA, util::bit::mask(1, 2, 3)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Tile, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::TopK, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Transpose, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::Unsqueeze, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(opset1::VariadicSplit, ShapeInferTA, util::bit::mask(1, 2)),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::BatchNormInference, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Convert, ShapeInferCopy),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::HardSigmoid, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::LogicalNot, ShapeInferCopy),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::LRN, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::NormalizeL2, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::PRelu, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Selu, ShapeInferBase),- _OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Softmax, ShapeInferCopy),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::AvgPool, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::BinaryConvolution, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Broadcast, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Concat, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Convolution, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ConvolutionBackpropData, ShapeInferPaddingTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::CTCGreedyDecoder, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::DeformableConvolution, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::DeformablePSROIPooling, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::DepthToSpace, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::DetectionOutput, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::FakeQuantize, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Gather, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::GatherTree, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::GroupConvolution, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::GroupConvolutionBackpropData, ShapeInferPaddingTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Interpolate, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::LSTMCell, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::MatMul, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::MaxPool, ShapeInferPaddingTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::NonMaxSuppression, ShapeInferTA, util::bit::mask(2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::OneHot, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Pad, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::PriorBox, ShapeInferTA, util::bit::mask(0)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::PriorBoxClustered, ShapeInferTA, util::bit::mask(0)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Proposal, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Range, ShapeInferTA, util::bit::mask(0, 1, 2)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceLogicalAnd, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceLogicalOr, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMax, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMean, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceMin, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceProd, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReduceSum, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Reshape, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Reverse, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ReverseSequence, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::RNNCell, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Select, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ShapeOf, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::ShuffleChannels, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::SpaceToDepth, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Split, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Squeeze, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::StridedSlice, ShapeInferTA, util::bit::mask(1, 2, 3)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Tile, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::TopK, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Transpose, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::Unsqueeze, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(opset1::VariadicSplit, ShapeInferTA, util::bit::mask(1, 2)),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::BatchNormInference, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Convert, ShapeInferCopy),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::HardSigmoid, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::LogicalNot, ShapeInferCopy),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::LRN, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::NormalizeL2, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::PRelu, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Selu, ShapeInferBase),+ OV_OP_SHAPE_INFER_NON_TEMPLATE_REG(opset1::Softmax, ShapeInferCopy),//- _OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::AUGRUCell, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::AUGRUSequence, ShapeInferTA, util::bit::mask()),- _OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::RMSNorm, ShapeInferTA, util::bit::mask(1)),- _OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::GLU, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::AUGRUCell, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::AUGRUSequence, ShapeInferTA, util::bit::mask()),+ OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::RMSNorm, ShapeInferTA, util::bit::mask(1)),+ OV_OP_SHAPE_INFER_MASK_REG(ov::op::internal::GLU, ShapeInferTA, util::bit::mask()),};// clang-format ondiff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cppindex c6e7a65f406..d4c01e1142f 100644--- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp+++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp@@ -175,14 +175,14 @@ CausalMaskPreprocess::CausalMaskPreprocess() {auto masked_fill_Select = makePattern<ov::opset1::Select>({mul_LogicalAnd, -FLT_MAX, causal_mask_boolean_slice | causal_mask_boolean_strided_slice},{{"auto_broadcast", "numpy"}}); // tensor_array<f32[?,1,8192,?]>- auto copy__ShapeOf = makePattern<ov::opset1::ShapeOf>(+ auto copy_ShapeOf = makePattern<ov::opset1::ShapeOf>({causal_mask_boolean_slice | causal_mask_boolean_strided_slice}); // tensor_array<i32[4]>auto Constant_47319 = makeConst(ov::element::u8, ov::Shape({}), {0});- auto copy__Broadcast =- makePattern<ov::opset1::Broadcast>({masked_fill_Select, copy__ShapeOf, Constant_47319},+ auto copy_Broadcast =+ makePattern<ov::opset1::Broadcast>({masked_fill_Select, copy_ShapeOf, Constant_47319},{{"mode", "numpy"}}); // tensor_array<f32[?,1,8192,..8192]>auto SliceAssign_201_Reshape_2 =- makePattern<ov::opset1::Reshape>({copy__Broadcast, {-1}}, {{"special_zero", false}}); // tensor_array<f32[?]>+ makePattern<ov::opset1::Reshape>({copy_Broadcast, {-1}}, {{"special_zero", false}}); // tensor_array<f32[?]>auto SliceAssign_201_ScatterNDUpdate = makePattern<ov::opset4::ScatterNDUpdate>({SliceAssign_201_Reshape_0, SliceAssign_201_Reshape_1, SliceAssign_201_Reshape_2}); // tensor_array<f32[?]>auto SliceAssign_201_Reshape_3 =diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cppindex c27532538aa..06d063e4d17 100644--- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp+++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp@@ -247,7 +247,7 @@ ov::intel_cpu::QKVProjFusion2::QKVProjFusion2() {}auto w_shape = qkv_proj_weight_node->get_shape();- if (w_shape[0] != static_cast<uint64_t>(proj_size * 3)) {+ if (w_shape[0] != static_cast<uint64_t>(proj_size) * 3) {return false;}diff --git a/src/plugins/intel_cpu/src/transformations/snippets/common/pass/mul_add_to_fma.cpp b/src/plugins/intel_cpu/src/transformations/snippets/common/pass/mul_add_to_fma.cppindex c889ad8e14b..c224d9a80b3 100644--- a/src/plugins/intel_cpu/src/transformations/snippets/common/pass/mul_add_to_fma.cpp+++ b/src/plugins/intel_cpu/src/transformations/snippets/common/pass/mul_add_to_fma.cpp@@ -50,6 +50,6 @@ ov::intel_cpu::pass::MulAddToFMA::MulAddToFMA() {return true;};- auto m = std::make_shared<ov::pass::pattern::Matcher>(add_m, "MulAddToFMA");+ auto m = std::make_shared<ov::pass::pattern::Matcher>(add_m, matcher_name);register_matcher(m, callback);}diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/op/brgemm_utils.cpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/op/brgemm_utils.cppindex 9bcb8c7daa3..5b1b0a22be3 100644--- a/src/plugins/intel_cpu/src/transformations/snippets/x64/op/brgemm_utils.cpp+++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/op/brgemm_utils.cpp@@ -109,7 +109,6 @@ size_t compute_inner_n_block(const ov::element::Type& precision) {case element::i8:return 64;case element::bf16:- return 32;case element::f16:return 32;case element::f32:diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cppindex 911cdcdde0a..756bab2df7f 100644--- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp+++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp@@ -554,13 +554,10 @@ bool SnippetsMarkSkipped::run_on_model(const std::shared_ptr<ov::Model>& m) {SetNodeFusingType(node, is_i8 ? NodeFusingType::FusedWithMatMulI8 : NodeFusingType::FusedWithMatMul);channelAxis = out_rank.is_static() ? out_rank.get_length() - 1 : DEFAULT_AXIS;}- } else if (isSuitableSubtractAsZeroPointsParent(node)) {- SetSnippetsNodeType(node, snippets::pass::SnippetsNodeType::SkippedByPlugin);- channelAxis = DEFAULT_AXIS;+ } else if (isSuitableSubtractAsZeroPointsParent(node) || (enableBF16 && isSuitableConvert(node))) {// CVS-105447// This WA skip convert with same I/O precision in Snippets// Such useless Convert is executed in Snippets- } else if (enableBF16 && isSuitableConvert(node)) {SetSnippetsNodeType(node, snippets::pass::SnippetsNodeType::SkippedByPlugin);channelAxis = DEFAULT_AXIS;} else {diff --git a/src/plugins/intel_cpu/src/utils/caseless.hpp b/src/plugins/intel_cpu/src/utils/caseless.hppindex fa9bc54da4e..03b5b8a3984 100644--- a/src/plugins/intel_cpu/src/utils/caseless.hpp+++ b/src/plugins/intel_cpu/src/utils/caseless.hpp@@ -59,9 +59,9 @@ public:template <class T>class CaselessHash : public std::hash<T> {public:- size_t operator()(const T& __val) const noexcept {+ size_t operator()(const T& _val) const noexcept {T lc;- std::transform(std::begin(__val), std::end(__val), std::back_inserter(lc), [](typename T::value_type ch) {+ std::transform(std::begin(_val), std::end(_val), std::back_inserter(lc), [](typename T::value_type ch) {return std::tolower(ch);});return std::hash<T>()(lc);diff --git a/src/plugins/intel_cpu/src/utils/debug_caps_config.cpp b/src/plugins/intel_cpu/src/utils/debug_caps_config.cppindex 88b4eae474a..63ba20af358 100644--- a/src/plugins/intel_cpu/src/utils/debug_caps_config.cpp+++ b/src/plugins/intel_cpu/src/utils/debug_caps_config.cpp@@ -29,53 +29,51 @@ void DebugCapsConfig::readProperties() {OPENVINO_THROW("readDebugCapsProperties: Unknown dump format");};- const char* envVarValue = nullptr;-- if ((envVarValue = readEnv("OV_CPU_EXEC_GRAPH_PATH"))) {+ if (auto envVarValue = readEnv("OV_CPU_EXEC_GRAPH_PATH")) {execGraphPath = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_VERBOSE"))) {+ if (auto envVarValue = readEnv("OV_CPU_VERBOSE")) {verbose = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_DIR"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_DIR")) {blobDumpDir = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_FORMAT"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_FORMAT")) {blobDumpFormat = parseDumpFormat(envVarValue);}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_EXEC_ID"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_EXEC_ID")) {blobDumpFilters[FILTER::BY_EXEC_ID] = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_PORTS"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_PORTS")) {blobDumpFilters[FILTER::BY_PORTS] = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_TYPE"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_TYPE")) {blobDumpFilters[FILTER::BY_TYPE] = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_NAME"))) {+ if (auto envVarValue = readEnv("OV_CPU_BLOB_DUMP_NODE_NAME")) {blobDumpFilters[FILTER::BY_NAME] = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_DISABLE"))) {+ if (auto envVarValue = readEnv("OV_CPU_DISABLE")) {disable.parseAndSet(envVarValue);}- if ((envVarValue = readEnv("OV_CPU_DUMP_IR"))) {+ if (auto envVarValue = readEnv("OV_CPU_DUMP_IR")) {dumpIR.parseAndSet(envVarValue);}- if ((envVarValue = readEnv("OV_CPU_SUMMARY_PERF"))) {+ if (auto envVarValue = readEnv("OV_CPU_SUMMARY_PERF")) {summaryPerf = envVarValue;}- if ((envVarValue = readEnv("OV_CPU_AVERAGE_COUNTERS"))) {+ if (auto envVarValue = readEnv("OV_CPU_AVERAGE_COUNTERS")) {averageCountersPath = envVarValue;}}diff --git a/src/plugins/intel_cpu/src/weights_cache.cpp b/src/plugins/intel_cpu/src/weights_cache.cppindex 93699f561c5..971fd68975f 100644--- a/src/plugins/intel_cpu/src/weights_cache.cpp+++ b/src/plugins/intel_cpu/src/weights_cache.cpp@@ -39,7 +39,22 @@ WeightsSharing::SharedMemory::Ptr WeightsSharing::findOrCreate(const std::stringstd::unique_lock<std::mutex> lock(guard);auto found = sharedWeights.find(key);- if (found == sharedWeights.end() || !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock()))) {+ auto isCached = [&]() -> bool {+ if (found == sharedWeights.end()) {+ return false;+ }+ ptr = found->second;+ if (!ptr) {+ return false;+ }+ newPtr = ptr->sharedMemory.lock();+ if (!newPtr) {+ return false;+ }+ return true;+ };++ if (!isCached()) {newPtr = create();ptr = std::make_shared<MemoryInfo>(newPtr, valid);sharedWeights[key] = ptr;@@ -59,7 +74,15 @@ WeightsSharing::SharedMemory::Ptr WeightsSharing::get(const std::string& key) costd::unique_lock<std::mutex> lock(guard);auto found = sharedWeights.find(key);- if (found == sharedWeights.end() || !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock()))) {+ if (found == sharedWeights.end()) {+ OPENVINO_THROW("Unknown shared memory with key ", key);+ }+ ptr = found->second;+ if (!ptr) {+ OPENVINO_THROW("Unknown shared memory with key ", key);+ }+ newPtr = ptr->sharedMemory.lock();+ if (!newPtr) {OPENVINO_THROW("Unknown shared memory with key ", key);}}