From 2946ae7a7eebfb88e3f17044b9f9c98cc027e27d Mon Sep 17 00:00:00 2001 From: liubo-intel Date: Tue, 12 Dec 2023 22:05:26 -0800 Subject: [PATCH] skip prepare_table() in jit_uni_vcvtneps2bf16 for avx2_vnni_2 --- src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp b/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp index 3f1cab68296f0b..2c2248cc8d47fa 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp @@ -13,7 +13,8 @@ class jit_uni_vcvtneps2bf16 : public jit_emitter { public: jit_uni_vcvtneps2bf16(dnnl::impl::cpu::x64::jit_generator* host, dnnl::impl::cpu::x64::cpu_isa_t host_isa, ov::element::Type exec_prc = ov::element::bf16) : jit_emitter(host, host_isa, exec_prc) { - if (!dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_bf16)) + if (!dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_bf16) && + !dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx2_vnni_2)) prepare_table(); }