From 7c6843caaedd04c9247f979a603ad131874f51b9 Mon Sep 17 00:00:00 2001 From: Xiuchuan Zhai Date: Thu, 12 Dec 2024 14:48:28 +0800 Subject: [PATCH] fix brgemm f16 on spr --- src/plugins/intel_cpu/src/nodes/kernels/x64/brgemm_kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/brgemm_kernel.cpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/brgemm_kernel.cpp index 7df2e2371a843a..5ef9d8df003a86 100644 --- a/src/plugins/intel_cpu/src/nodes/kernels/x64/brgemm_kernel.cpp +++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/brgemm_kernel.cpp @@ -289,7 +289,7 @@ void BrgemmKernel::init_brgemm_copy_b( brgemm_matmul_conf_t brgCopyKernelConf; brgCopyKernelConf.src_dt = is_avx_f16_only ? dnnl_data_type_t::dnnl_f32 : dt_in0; brgCopyKernelConf.wei_dt = is_avx_f16_only ? dnnl_data_type_t::dnnl_f32 : dt_in1; - brgCopyKernelConf.orig_wei_dt = dt_in1; + brgCopyKernelConf.orig_wei_dt = static_cast(DnnlExtensionUtils::ElementTypeToDataType(inType)); brgCopyKernelConf.wei_n_blk = N_blk; brgCopyKernelConf.wei_tag = transpose ? dnnl_ba : dnnl_ab; brgCopyKernelConf.copy_B_wei_stride = copy_B_wei_stride;