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] Align JIT kernel selection with `ov::with_cpu_x86_*()` (#38189)
Aleksandr Voron6db412d0a276
diff --git a/src/plugins/intel_cpu/src/nodes/color_convert.cpp b/src/plugins/intel_cpu/src/nodes/color_convert.cppindex 5c3aca33f51..e67509d5dfa 100644--- a/src/plugins/intel_cpu/src/nodes/color_convert.cpp+++ b/src/plugins/intel_cpu/src/nodes/color_convert.cpp@@ -37,7 +37,6 @@# include <array># include <common/c_types_map.hpp>-# include <cpu/x64/cpu_isa_traits.hpp># include <cpu/x64/jit_generator.hpp># include "kernels/x64/jit_kernel.hpp"@@ -530,15 +529,15 @@ const jit_uni_converter& jit_converter_create() {auto createKernel = []() {std::unique_ptr<jit_uni_converter> kernel;- if (mayiuse(cpu_isa_t::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {auto converter = new JitConverter<T[16]>;kernel.reset(converter);converter->init();- } else if (mayiuse(cpu_isa_t::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {auto converter = new JitConverter<T[8]>;kernel.reset(converter);converter->init();- } else if (mayiuse(cpu_isa_t::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {auto converter = new JitConverter<T[4]>;kernel.reset(converter);converter->init();@@ -866,15 +865,15 @@ const jit_uni_converter& jit_converter_create() {auto createKernel = []() {std::unique_ptr<jit_uni_converter> kernel;- if (mayiuse(cpu_isa_t::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {auto converter = new JitConverter<T[16]>;kernel.reset(converter);converter->init();- } else if (mayiuse(cpu_isa_t::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {auto converter = new JitConverter<T[8]>;kernel.reset(converter);converter->init();- } else if (mayiuse(cpu_isa_t::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {auto converter = new JitConverter<T[4]>;kernel.reset(converter);converter->init();diff --git a/src/plugins/intel_cpu/src/nodes/common/softmax.cpp b/src/plugins/intel_cpu/src/nodes/common/softmax.cppindex 39c65ed2350..39db09a1e63 100644--- a/src/plugins/intel_cpu/src/nodes/common/softmax.cpp+++ b/src/plugins/intel_cpu/src/nodes/common/softmax.cpp@@ -272,13 +272,13 @@ SoftmaxGeneric::SoftmaxGeneric(ov::element::Type inpPrc, ov::element::Type outPrjcp.src_dt = inpPrc;jcp.dst_dt = outPrc;- if (mayiuse(x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {softmax_kernel = std::make_shared<jit_uni_softmax_kernel_f32<x64::avx512_core>>(jcp);block_size = 16;- } else if (mayiuse(x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {softmax_kernel = std::make_shared<jit_uni_softmax_kernel_f32<x64::avx2>>(jcp);block_size = 8;- } else if (mayiuse(x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {softmax_kernel = std::make_shared<jit_uni_softmax_kernel_f32<x64::sse41>>(jcp);block_size = 4;}diff --git a/src/plugins/intel_cpu/src/nodes/def_conv.cpp b/src/plugins/intel_cpu/src/nodes/def_conv.cppindex 1cd67f1148d..9eb50f61dd2 100644--- a/src/plugins/intel_cpu/src/nodes/def_conv.cpp+++ b/src/plugins/intel_cpu/src/nodes/def_conv.cpp@@ -1145,11 +1145,11 @@ DeformableConvolution::DefConvJitExecutor::DefConvJitExecutor(const std::vector<std::shared_ptr<BlockedMemoryDesc>>& descVector): DefConvExecutor(defConvAttr, descVector) {#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {def_conv_kernel = std::make_shared<jit_uni_def_conv_kernel_f32<cpu::x64::avx512_core>>(jcp);- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {def_conv_kernel = std::make_shared<jit_uni_def_conv_kernel_f32<cpu::x64::avx2>>(jcp);- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {def_conv_kernel = std::make_shared<jit_uni_def_conv_kernel_f32<cpu::x64::sse41>>(jcp);} else {OPENVINO_THROW("Can't create DefConvJitExecutor");diff --git a/src/plugins/intel_cpu/src/nodes/extract_image_patches.cpp b/src/plugins/intel_cpu/src/nodes/extract_image_patches.cppindex 2f9ee57b53f..b92f265d42d 100644--- a/src/plugins/intel_cpu/src/nodes/extract_image_patches.cpp+++ b/src/plugins/intel_cpu/src/nodes/extract_image_patches.cpp@@ -725,11 +725,11 @@ ExtractImagePatches::ExtractImagePatchesJitExecutor::ExtractImagePatchesJitExecu[[maybe_unused]] const size_t prcSize) {#if defined(OPENVINO_ARCH_X86_64)auto jpp = fillJpp(inDims, outDims, kSizes, strides, rates, padType, prcSize);- if (mayiuse(x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {pKernel = std::make_unique<jit_extract_image_patches_kernel<x64::avx512_core>>(jpp);- } else if (mayiuse(x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {pKernel = std::make_unique<jit_extract_image_patches_kernel<x64::avx2>>(jpp);- } else if (mayiuse(x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {pKernel = std::make_unique<jit_extract_image_patches_kernel<x64::sse41>>(jpp);} else {OPENVINO_THROW("Can't create jit extract image patches kernel");diff --git a/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp b/src/plugins/intel_cpu/src/nodes/fake_quantize.cppindex d1ad0806271..8e239eb1818 100644--- a/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp+++ b/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp@@ -1898,7 +1898,7 @@ void FakeQuantize::executeQuantization(const std::unique_ptr<jit_uni_quantize_keconst bool has_ncsp_layout = srcDesc.hasLayoutType(LayoutType::ncsp);const bool has_valid_rank = any_of(srcDesc.getShape().getRank(), 3U, 4U, 5U);const bool is_ncsp_with_valid_rank = has_ncsp_layout && has_valid_rank;- if (!is_ncsp_with_valid_rank && mayiuse(cpu::x64::avx512_core)) {+ if (!is_ncsp_with_valid_rank && ov::with_cpu_x86_avx512_core()) {blk_size = 16;} else if (!is_ncsp_with_valid_rank) {blk_size = 8;@@ -2458,19 +2458,19 @@ bool FakeQuantize::appendAttrPostOps(DnnlPostOpsComposerLegacy& dnnlpoc,FakeQuantize::FakeQuantizeJitExecutor::FakeQuantizeJitExecutor([[maybe_unused]] const jit_quantize_params& _jqp) {#if defined(OPENVINO_ARCH_X86_64)bool isBinarization = _jqp.op_type == Algorithm::FQBinarization;- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {if (isBinarization) {pKernel = std::make_unique<jit_uni_binarization_kernel<cpu::x64::avx512_core>>(_jqp);} else {pKernel = std::make_unique<jit_uni_quantization_kernel<cpu::x64::avx512_core>>(_jqp);}- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {if (isBinarization) {pKernel = std::make_unique<jit_uni_binarization_kernel<cpu::x64::avx2>>(_jqp);} else {pKernel = std::make_unique<jit_uni_quantization_kernel<cpu::x64::avx2>>(_jqp);}- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {if (isBinarization) {pKernel = std::make_unique<jit_uni_binarization_kernel<cpu::x64::sse41>>(_jqp);} else {diff --git a/src/plugins/intel_cpu/src/nodes/interaction.cpp b/src/plugins/intel_cpu/src/nodes/interaction.cppindex c8e31149baa..a7c3397dcec 100644--- a/src/plugins/intel_cpu/src/nodes/interaction.cpp+++ b/src/plugins/intel_cpu/src/nodes/interaction.cpp@@ -360,13 +360,13 @@ void Interaction::prepareParams() {interJcp.input_size = interactFeatureSize;#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu_isa_t::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {moveFeatureKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::avx512_core>>(jcp);moveInteractKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::avx512_core>>(interJcp);- } else if (mayiuse(cpu_isa_t::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {moveFeatureKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::avx2>>(jcp);moveInteractKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::avx2>>(interJcp);- } else if (mayiuse(cpu_isa_t::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {moveFeatureKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::sse41>>(jcp);moveInteractKernel = std::make_unique<jit_move_scale_kernel<cpu_isa_t::sse41>>(interJcp);}diff --git a/src/plugins/intel_cpu/src/nodes/interpolate.cpp b/src/plugins/intel_cpu/src/nodes/interpolate.cppindex 17b5e8cea26..38564874321 100644--- a/src/plugins/intel_cpu/src/nodes/interpolate.cpp+++ b/src/plugins/intel_cpu/src/nodes/interpolate.cpp@@ -4402,15 +4402,15 @@ Interpolate::InterpolateJitExecutor::InterpolateJitExecutor(const InterpolateAtt}#if defined(OPENVINO_ARCH_X86_64)if (jcp.layout != InterpolateLayoutType::planar) {- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {interpolateKernel =std::make_shared<jit_uni_interpolate_kernel_f32<cpu::x64::avx512_core>>(jcp, *attr.get());- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {interpolateKernel = std::make_shared<jit_uni_interpolate_kernel_f32<cpu::x64::avx2>>(jcp, *attr.get());- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {interpolateKernel = std::make_shared<jit_uni_interpolate_kernel_f32<cpu::x64::sse41>>(jcp, *attr.get());}- } else if (mayiuse(cpu::x64::avx2) && interpAttrs.inPrc == ov::element::f32) {+ } else if (ov::with_cpu_x86_avx2() && interpAttrs.inPrc == ov::element::f32) {// gather ISA(for planar JIT kernel) for avx2 and fp32interpolateKernel = std::make_shared<jit_uni_interpolate_kernel_f32<cpu::x64::avx2>>(jcp, *attr.get());} else {diff --git a/src/plugins/intel_cpu/src/nodes/mvn.cpp b/src/plugins/intel_cpu/src/nodes/mvn.cppindex 2d8dd8592fa..be4ed3fe9a1 100644--- a/src/plugins/intel_cpu/src/nodes/mvn.cpp+++ b/src/plugins/intel_cpu/src/nodes/mvn.cpp@@ -2033,7 +2033,7 @@ void MVN::initSupportedPrimitiveDescriptors() {}#if defined(OPENVINO_ARCH_X86) || defined(OPENVINO_ARCH_X86_64)// ref with float planar and no fusion- if (!mayiuse(cpu::x64::sse41)) {+ if (!ov::with_cpu_x86_sse42()) {inputPrecision = outputPrecision = ov::element::f32;}#endif@@ -2153,7 +2153,7 @@ MVN::MVNJitExecutor::MVNJitExecutor(const MVNAttrs& mvnAttrs, [[maybe_unused]] cjcp.normalize_variance = mvnAttrs.normalizeVariance_;jcp.across_channels = mvnAttrs.execAcrossChannels_;#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {mvn_kernel = std::make_shared<jit_uni_mvn_kernel_f32<cpu::x64::avx512_core>>(jcp, *attr.get());jcp.normalize_variance = false;mvn_mean_kernel = std::make_shared<jit_uni_mvn_mean_variance_kernel_f32<cpu::x64::avx512_core>>(jcp);@@ -2161,7 +2161,7 @@ MVN::MVNJitExecutor::MVNJitExecutor(const MVNAttrs& mvnAttrs, [[maybe_unused]] cjcp.normalize_variance = true;mvn_variance_kernel = std::make_shared<jit_uni_mvn_mean_variance_kernel_f32<cpu::x64::avx512_core>>(jcp);}- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {mvn_kernel = std::make_shared<jit_uni_mvn_kernel_f32<cpu::x64::avx2>>(jcp, *attr.get());jcp.normalize_variance = false;mvn_mean_kernel = std::make_shared<jit_uni_mvn_mean_variance_kernel_f32<cpu::x64::avx2>>(jcp);@@ -2169,7 +2169,7 @@ MVN::MVNJitExecutor::MVNJitExecutor(const MVNAttrs& mvnAttrs, [[maybe_unused]] cjcp.normalize_variance = true;mvn_variance_kernel = std::make_shared<jit_uni_mvn_mean_variance_kernel_f32<cpu::x64::avx2>>(jcp);}- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {mvn_kernel = std::make_shared<jit_uni_mvn_kernel_f32<cpu::x64::sse41>>(jcp, *attr.get());jcp.normalize_variance = false;mvn_mean_kernel = std::make_shared<jit_uni_mvn_mean_variance_kernel_f32<cpu::x64::sse41>>(jcp);diff --git a/src/plugins/intel_cpu/src/nodes/normalize.cpp b/src/plugins/intel_cpu/src/nodes/normalize.cppindex f496f759a0c..d068a20b756 100644--- a/src/plugins/intel_cpu/src/nodes/normalize.cpp+++ b/src/plugins/intel_cpu/src/nodes/normalize.cpp@@ -1093,16 +1093,16 @@ public:jcp.h = (dims_size > 2) ? dims[2] : 1LU;jcp.w = (dims_size > 3) ? dims[3] : 1LU;- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {blk_size = 16;normalize_modulo_kernel = std::make_shared<jit_uni_normalize_modulo_kernel_f32<cpu::x64::avx512_core>>(jcp);normalize_kernel =std::make_shared<jit_uni_normalize_kernel_f32<cpu::x64::avx512_core>>(jcp, *kernel_attrs.get());- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {blk_size = 8;normalize_modulo_kernel = std::make_shared<jit_uni_normalize_modulo_kernel_f32<cpu::x64::avx2>>(jcp);normalize_kernel = std::make_shared<jit_uni_normalize_kernel_f32<cpu::x64::avx2>>(jcp, *kernel_attrs.get());- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {blk_size = jcp.is_blk ? 8 : 4;normalize_modulo_kernel = std::make_shared<jit_uni_normalize_modulo_kernel_f32<cpu::x64::sse41>>(jcp);normalize_kernel =@@ -1643,7 +1643,7 @@ std::shared_ptr<NormalizeL2::NormalizeL2Executor> NormalizeL2::NormalizeL2Executreturn std::make_shared<NormalizeL2CornerCaseExecutor<in_data_t, out_data_t>>(dims);#if defined(OPENVINO_ARCH_X86_64)}- if (mayiuse(cpu::x64::sse41)) {+ if (ov::with_cpu_x86_sse42()) {return std::make_shared<NormalizeL2JitExecutor<in_data_t, out_data_t>>(attrs, kernel_attrs, dims);#endif}diff --git a/src/plugins/intel_cpu/src/nodes/reduce.cpp b/src/plugins/intel_cpu/src/nodes/reduce.cppindex fdce021a3b1..af917f4408d 100644--- a/src/plugins/intel_cpu/src/nodes/reduce.cpp+++ b/src/plugins/intel_cpu/src/nodes/reduce.cpp@@ -2341,11 +2341,11 @@ void Reduce::prepareParams() {auto builder = [&]([[maybe_unused]] const ReduceKey& key) -> std::shared_ptr<jit_uni_reduce_post_kernel> {std::shared_ptr<jit_uni_reduce_post_kernel> post_kernel;#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {post_kernel = std::make_shared<jit_uni_reduce_post_kernel_f32<cpu::x64::avx512_core>>(key.jcp, *attr.get());- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {post_kernel = std::make_shared<jit_uni_reduce_post_kernel_f32<cpu::x64::avx2>>(key.jcp, *attr.get());- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {post_kernel = std::make_shared<jit_uni_reduce_post_kernel_f32<cpu::x64::sse41>>(key.jcp, *attr.get());}#endif // OPENVINO_ARCH_X86_64@@ -2462,11 +2462,11 @@ void Reduce::createPrimitive() {void Reduce::create_reduce_kernel(std::shared_ptr<jit_uni_reduce_kernel>& kernel,[[maybe_unused]] const jit_reduce_config_params& jcp) {#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {kernel = std::make_shared<jit_uni_reduce_kernel_f32<cpu::x64::avx512_core>>(jcp);- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {kernel = std::make_shared<jit_uni_reduce_kernel_f32<cpu::x64::avx2>>(jcp);- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {kernel = std::make_shared<jit_uni_reduce_kernel_f32<cpu::x64::sse41>>(jcp);}#endif // OPENVINO_ARCH_X86_64diff --git a/src/plugins/intel_cpu/src/nodes/region_yolo.cpp b/src/plugins/intel_cpu/src/nodes/region_yolo.cppindex b5732be13db..eb017c9b310 100644--- a/src/plugins/intel_cpu/src/nodes/region_yolo.cpp+++ b/src/plugins/intel_cpu/src/nodes/region_yolo.cpp@@ -358,13 +358,13 @@ void RegionYolo::createPrimitive() {jcp.src_data_size = jcp.dst_data_size = output_prec.size();block_size = 1;- if (mayiuse(x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {logistic_kernel = std::make_shared<jit_uni_logistic_kernel_f32<x64::avx512_core>>(jcp);block_size = 16;- } else if (mayiuse(x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {logistic_kernel = std::make_shared<jit_uni_logistic_kernel_f32<x64::avx2>>(jcp);block_size = 8;- } else if (mayiuse(x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {logistic_kernel = std::make_shared<jit_uni_logistic_kernel_f32<x64::sse41>>(jcp);block_size = 4;}diff --git a/src/plugins/intel_cpu/src/nodes/roi_align.cpp b/src/plugins/intel_cpu/src/nodes/roi_align.cppindex a9bbcecebab..749203fb4c7 100644--- a/src/plugins/intel_cpu/src/nodes/roi_align.cpp+++ b/src/plugins/intel_cpu/src/nodes/roi_align.cpp@@ -807,11 +807,11 @@ void ROIAlign::createJitKernel(const ov::element::Type& dataPrec, const ROIAlignjcp.pooled_h = pooledH;jcp.pooled_w = pooledW;#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {roi_align_kernel = std::make_shared<jit_uni_roi_align_kernel_f32<cpu::x64::avx512_core>>(jcp);- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {roi_align_kernel = std::make_shared<jit_uni_roi_align_kernel_f32<cpu::x64::avx2>>(jcp);- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {roi_align_kernel = std::make_shared<jit_uni_roi_align_kernel_f32<cpu::x64::sse41>>(jcp);}if (roi_align_kernel) {diff --git a/src/plugins/intel_cpu/src/nodes/roi_pooling.cpp b/src/plugins/intel_cpu/src/nodes/roi_pooling.cppindex 3f3806128ba..b3c52c94b12 100644--- a/src/plugins/intel_cpu/src/nodes/roi_pooling.cpp+++ b/src/plugins/intel_cpu/src/nodes/roi_pooling.cpp@@ -575,11 +575,11 @@ class ROIPooling::ROIPoolingJitExecutor : public ROIPooling::ROIPoolingExecutorpublic:explicit ROIPoolingJitExecutor(const jit_roi_pooling_params& jpp) {#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {roi_pooling_kernel = std::make_shared<jit_uni_roi_pooling_kernel_f32<cpu::x64::avx512_core>>(jpp);- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {roi_pooling_kernel = std::make_shared<jit_uni_roi_pooling_kernel_f32<cpu::x64::avx2>>(jpp);- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {roi_pooling_kernel = std::make_shared<jit_uni_roi_pooling_kernel_f32<cpu::x64::sse41>>(jpp);} else {OPENVINO_THROW("Can't create jit RoiPooling kernel");@@ -1030,7 +1030,7 @@ template <typename T>std::shared_ptr<ROIPooling::ROIPoolingExecutor> ROIPooling::ROIPoolingExecutor::makeExecutor(const jit_roi_pooling_params& jpp) {#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::sse41)) {+ if (ov::with_cpu_x86_sse42()) {return std::make_shared<ROIPoolingJitExecutor<T>>(jpp);}#endifdiff --git a/src/plugins/intel_cpu/src/nodes/topk.cpp b/src/plugins/intel_cpu/src/nodes/topk.cppindex 72134b0f276..9c5b4ff1977 100644--- a/src/plugins/intel_cpu/src/nodes/topk.cpp+++ b/src/plugins/intel_cpu/src/nodes/topk.cpp@@ -1988,7 +1988,7 @@ void TopK::initSupportedPrimitiveDescriptors() {}();#if defined(OPENVINO_ARCH_X86_64)- jit_mode = mayiuse(cpu::x64::sse41);+ jit_mode = ov::with_cpu_x86_sse42();#elsejit_mode = false;#endif@@ -2210,11 +2210,11 @@ void TopK::createPrimitive() {}}#if defined(OPENVINO_ARCH_X86_64)- if (mayiuse(cpu::x64::avx512_core)) {+ if (ov::with_cpu_x86_avx512_core()) {topk_kernel = std::make_shared<jit_uni_topk_kernel_f32<cpu::x64::avx512_core>>(jcp);- } else if (mayiuse(cpu::x64::avx2)) {+ } else if (ov::with_cpu_x86_avx2()) {topk_kernel = std::make_shared<jit_uni_topk_kernel_f32<cpu::x64::avx2>>(jcp);- } else if (mayiuse(cpu::x64::sse41)) {+ } else if (ov::with_cpu_x86_sse42()) {topk_kernel = std::make_shared<jit_uni_topk_kernel_f32<cpu::x64::sse41>>(jcp);}