Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU] Fix avx10.2 tests for NVL (#38678)

Xiuchuan Zhaib3a4e0e0d284
diff --git a/src/plugins/intel_cpu/src/nodes/interaction.cpp b/src/plugins/intel_cpu/src/nodes/interaction.cpp
index a7c3397dcec..acefbb9a4f6 100644
--- a/src/plugins/intel_cpu/src/nodes/interaction.cpp
+++ b/src/plugins/intel_cpu/src/nodes/interaction.cpp
@@ -230,7 +230,7 @@ void Interaction::initSupportedPrimitiveDescriptors() {
return;
}
dataPrecision = getOriginalInputPrecisionAtPort(0);
- if (dataPrecision != ov::element::f32 && ov::with_cpu_x86_bfloat16()) {
+ if (dataPrecision.is_real() && dataPrecision != ov::element::f32 && ov::with_cpu_x86_bfloat16()) {
dataPrecision = ov::element::bf16;
} else {
dataPrecision = ov::element::f32;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/interaction.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/interaction.cpp
index 41e4d33897f..5f6a2ca5eec 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/interaction.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/interaction.cpp
@@ -156,7 +156,7 @@ protected:
void SetUp() override {
const auto& [inType, inputShape] = this->GetParam();
bool with_bf16 = ov::with_cpu_x86_bfloat16() || with_cpu_x86_avx2_vnni_2();
- if (with_bf16 && (inType == ov::element::bf16 || inType == ov::element::i32)) {
+ if (with_bf16 && inType == ov::element::bf16) {
selectedType = makeSelectedTypeStr("ref_any", ov::element::bf16);
} else {
selectedType = makeSelectedTypeStr("ref_any", ov::element::f32);
diff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
index 7c5bc96d474..638ba410dda 100644
--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
+++ b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
@@ -624,7 +624,6 @@ const std::vector<std::regex>& disabled_test_patterns() {
patterns.emplace_back(std::regex(R"(smoke_ExportImportTest/ExportOptimalNumStreams.OptimalNumStreams/.*)"));
// by calc abs_threshold with expected value
patterns.emplace_back(std::regex(R"(.*smoke_GatherCompressedWeights_basic/GatherWeightsDecompression.CompareWithRefs.*INFERENCE_PRECISION_HINT.*bf16.*)"));
- patterns.emplace_back(std::regex(R"(.*smoke_Interaction/IntertactionCPUTest.CompareWithRefs.*Prc=i32.*)"));
patterns.emplace_back(std::regex(R"(.*smoke_MatMulCompressedWeights_(amx|sym_amx|corner_cases_amx)/MatmulWeightsDecompression.CompareWithRefs.*INFERENCE_PRECISION_HINT.*bf16.*)"));
patterns.emplace_back(std::regex(R"(.*smoke_Snippets_EnforcePrecision_bf16/EnforcePrecisionTest.*)"));
patterns.emplace_back(std::regex(R"(.*smoke_Snippets_MHABF16_4D/MHA.CompareWithRefImpl/.*\[1.58.16.34\]_IS\[1\]=\[1.58.16.34\]_IS\[2\]=\[1.1.1.58\]_IS\[3\]=\[1.58.16.34\].*)"));
@@ -639,6 +638,17 @@ const std::vector<std::regex>& disabled_test_patterns() {
patterns.emplace_back(std::regex(R"(.*EnableXattn=1.*)"));
}
+ if (!ov::with_cpu_x86_avx512_core_amx() && ov::with_cpu_x86_avx512_core_fp16() && ov::with_cpu_x86_bfloat16()) {
+ // AVX10.2-class machines can expose fp16+bf16 without AMX support being enabled in the current CPU mask;
+ // keep these known failing snippets skips limited to that path instead of matching broader AMX-disabled CPUs.
+ // Issue: 195918: TODO: filter out failing tests on NVL
+ patterns.emplace_back(std::regex(R"(smoke_Snippets_MatMult/TransposeMatMul\.CompareWithRefImpl/IS\[0\]=\[\]_\(\[1\.49\.2\.23\]\)_IS\[1\]=\[\]_\(\[2\.2\.23\.39\]\)_Pos=0_T\[0\]=f16_T\[1\]=f16_MatMul_#N=1_#S=1_targetDevice=CPU)"));
+ patterns.emplace_back(std::regex(R"(smoke_Snippets_MatMult/TransposeMatMul\.CompareWithRefImpl/IS\[0\]=\[\]_\(\[2\.1\.49\.13\]\)_IS\[1\]=\[\]_\(\[1\.13\.3\.39\]\)_Pos=1_T\[0\]=f16_T\[1\]=f16_MatMul_#N=1_#S=1_targetDevice=CPU)"));
+ patterns.emplace_back(std::regex(R"(smoke_Snippets_MHABF16_4D/MHA\.CompareWithRefImpl/IS\[0\]=\[\]_\(\[2\.68\.6\.92\]\)_IS\[1\]=\[\]_\(\[2\.68\.6\.92\]\)_IS\[2\]=\[\]_\(\[1\.1\.68\.68\]\)_IS\[3\]=\[\]_\(\[2\.68\.6\.92\]\)_T\[0\]=bf16_T\[1\]=bf16_T\[2\]=bf16_T\[3\]=bf16_Mul=0_PRC=bf16_#N=3_#S=2_targetDevice=CPU_)"));
+ patterns.emplace_back(std::regex(R"(smoke_Snippets_MHABF16_4D/MHA\.CompareWithRefImpl/IS\[0\]=\[\]_\(\[1\.58\.16\.34\]\)_IS\[1\]=\[\]_\(\[1\.58\.16\.34\]\)_IS\[2\]=\[\]_\(\[1\.1\.1\.58\]\)_IS\[3\]=\[\]_\(\[1\.58\.16\.34\]\)_T\[0\]=bf16_T\[1\]=bf16_T\[2\]=bf16_T\[3\]=bf16_Mul=0_PRC=bf16_#N=3_#S=2_targetDevice=CPU_)"));
+ patterns.emplace_back(std::regex(R"(smoke_ScaledAttn_CPU/ScaledAttnLayerCPUTest\.CompareWithRefs/netPRC=bf16_IS=\[\?\.\?\.\?\.\?\]_\[\?\.\?\.\?\.\?\]_\[\?\.\?\]_TS=\(2\.8\.16\.32\)_\(2\.8\.16\.32\)_\(2\.8\.16\.32\)_\(1\.8\.48\.32\)_\(1\.8\.48\.32\)_\(1\.8\.48\.32\)_\(16\.48\)_\(16\.1\)_\(1\.48\)_is_causal=.*_has_attn=.*_has_scale=0_trgDev=CPU_primitive=ref_any)"));
+ }
+
if (ov::with_cpu_x86_avx512_core_fp16() || CPUTestUtils::with_cpu_x86_avx2_vnni_2()) {
// Issue: 143852
patterns.emplace_back(std::regex(R"(smoke_ConvertRangeSubgraphCPUTest/ConvertRangeSubgraphCPUTest\.CompareWithRefs.*Prc=f16.*)"));
diff --git a/src/plugins/intel_cpu/thirdparty/onednn b/src/plugins/intel_cpu/thirdparty/onednn
index 885d61d768b..32f55373eee 160000
--- a/src/plugins/intel_cpu/thirdparty/onednn
+++ b/src/plugins/intel_cpu/thirdparty/onednn
@@ -1 +1 @@
-Subproject commit 885d61d768b7ddb950c3604ba6a44d8f3d2133b2
+Subproject commit 32f55373eee78a391ae09690bb7269e0bd074cbc