-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CPU] sns f16_mha_on_avx512_core_amx_f16_target #27514
base: master
Are you sure you want to change the base?
Conversation
@a-sidorova @v-Golubev @IvanNovoselov , Could you please review? Thanks! |
src/plugins/intel_cpu/tests/functional/shared_tests_instances/snippets/mha.cpp
Outdated
Show resolved
Hide resolved
if (dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_bf16) && ov::is_type<snippets::op::Brgemm>(op)) { | ||
return {{element::bf16, element::bf16}}; | ||
} | ||
if (dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_amx_fp16) && ov::is_type<snippets::op::Brgemm>(op)) { | ||
return {{element::f16, element::f16}}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just think that the function body should be so:
std::set<std::vector<ov::element::Type>> types;
if (ov::is_type<snippets::op::Brgemm>(op)) {
if (dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_amx_fp16))
types.insert({element::f16, element::f16});
if (dnnl::impl::cpu::x64::avx512_core_bf16)
types.insert({element::bf16, element::bf16});
}
return types;
Also tell me please, if you have verified this pass and it works?
MHA, | ||
::testing::Combine(::testing::ValuesIn(transposedShape_4D(false)), | ||
::testing::ValuesIn(precision_f32(4)), | ||
::testing::ValuesIn(mha_infer_precision_fp16_if_supported()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::testing::ValuesIn(mha_infer_precision_fp16_if_supported()), | |
::testing::ValuesIn(ov::element::f16), |
And just skip test in skip_test_config
if there is no ISA amx_fp16
on the platform as it's implemented for bf16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you tell me please if you launched these added tests on GNR or using SDE?
Details:
Tickets: