Skip to content

Commit 101e82e

Browse files
committed
prepare_table() shows perf influnce, disabled if not neccessary
1 parent c5e3d1e commit 101e82e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/intel_cpu/src/emitters/plugin/x64/jit_bf16_emitters.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ class jit_uni_vcvtneps2bf16 : public jit_emitter {
1818
conversion_mode mode = conversion_mode::default_mode)
1919
: jit_emitter(host, host_isa, exec_prc),
2020
mode_(mode) {
21-
prepare_table();
21+
if ((!dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_bf16) &&
22+
!dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx2_vnni_2)) ||
23+
mode_ == conversion_mode::saturation_mode) {
24+
prepare_table();
25+
}
2226
}
2327

2428
size_t get_inputs_num() const override {

0 commit comments

Comments
 (0)