Skip to content

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

[Snippets][CPU] Switch to newer versions of FP16/FP32 matmul KAI kernels (ARM64), remove null bias workaround (#33350)

Arseniy Obolenskiy7af9c761f835
diff --git a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm.hpp b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm.hpp
index 47d35247b7c..5d14840728d 100644
--- a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm.hpp
+++ b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm.hpp
@@ -15,12 +15,12 @@
#include "emitters/snippets/brgemm_generic.hpp"
#include "emitters/utils.hpp"
-#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla.h"
+#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla.h"
#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p_interface.h"
-#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla.h"
+#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla.h"
#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p_interface.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x16p32x1b_x16_x16_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x32p16x1b_x32_x32_neon.h"
namespace ov::intel_cpu::aarch64 {
@@ -52,16 +52,16 @@ struct GemmCompiledKernelF32 {
std::make_shared<kai_matmul_clamp_f32_f32_f32p_ukernel>(ukernel);
static constexpr kai_matmul_clamp_f32_f32_f32p_ukernel ukernel{
- kai_get_m_step_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_n_step_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_nr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_kr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_sr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_lhs_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_rhs_packed_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_dst_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_dst_size_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_run_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla};
+ kai_get_m_step_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_n_step_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_nr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_kr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_sr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_lhs_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_rhs_packed_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_dst_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_dst_size_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_run_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla};
};
struct GemmCompiledKernelF16 {
@@ -69,16 +69,16 @@ struct GemmCompiledKernelF16 {
std::make_shared<kai_matmul_clamp_f16_f16_f16p_ukernel>(ukernel);
static constexpr kai_matmul_clamp_f16_f16_f16p_ukernel ukernel{
- kai_get_m_step_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_n_step_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_nr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_kr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_sr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_lhs_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_rhs_packed_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_dst_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_dst_size_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_run_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla};
+ kai_get_m_step_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_n_step_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_nr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_kr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_sr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_lhs_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_rhs_packed_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_dst_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_dst_size_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_run_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla};
};
struct GemmKaiCallArgs {
diff --git a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.cpp b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.cpp
index d08e5207d44..e30106ba4ac 100644
--- a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.cpp
+++ b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.cpp
@@ -12,11 +12,10 @@
#include <sstream>
#include <string>
#include <utility>
-#include <vector>
#include "emitters/utils.hpp"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x16p32x1b_x16_x16_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x32p16x1b_x32_x32_neon.h"
#include "openvino/core/type/element_type.hpp"
#include "snippets/kernel_executor_table.hpp"
#include "snippets/lowered/expression.hpp"
@@ -90,23 +89,14 @@ void GemmCopyBKaiKernelExecutorBase::update_config_common(
}
template <typename CompiledKernelT>
-void GemmCopyBKaiKernelExecutorBase::ensure_kernel(std::shared_ptr<CompiledKernelT>& kernel, size_t bias_elem_size) {
- const auto expected_bias_size = GemmCopyBKernelKaiConfig::get_N_blk() * bias_elem_size;
+void GemmCopyBKaiKernelExecutorBase::ensure_kernel(std::shared_ptr<CompiledKernelT>& kernel) {
if (kernel == nullptr) {
kernel = std::make_shared<CompiledKernelT>();
- kernel->bias_buffer->assign(expected_bias_size, 0);
- } else if (kernel->bias_buffer->size() != expected_bias_size) {
- kernel->bias_buffer->assign(expected_bias_size, 0);
}
}
template <auto rhs_pack_kxn, typename UkernelT>
-static void execute_copy_b_common(const GemmCopyBKernelKaiConfig& config,
- const UkernelT& uk,
- std::vector<uint8_t>& bias_buffer,
- void* in0,
- void* out0,
- size_t elem_size) {
+static void execute_copy_b_common(const GemmCopyBKernelKaiConfig& config, const UkernelT& uk, void* in0, void* out0) {
const auto K = config.get_K();
const auto N = config.get_N();
const auto copy_b_wei_stride = config.get_copy_b_wei_stride();
@@ -116,9 +106,6 @@ static void execute_copy_b_common(const GemmCopyBKernelKaiConfig& config,
const size_t kr = uk.get_kr();
const size_t sr = uk.get_sr();
size_t n_blocks = ov::snippets::utils::div_up(N, n_blk_size);
- if (bias_buffer.size() != GemmCopyBKernelKaiConfig::get_N_blk() * elem_size) {
- bias_buffer.assign(GemmCopyBKernelKaiConfig::get_N_blk() * elem_size, 0);
- }
for (size_t n_block = 0; n_block < n_blocks; n_block++) {
size_t n_start = n_block * n_blk_size;
size_t n_end = std::min(n_start + n_blk_size, N);
@@ -127,19 +114,7 @@ static void execute_copy_b_common(const GemmCopyBKernelKaiConfig& config,
auto* dst_base = static_cast<int8_t*>(out0);
const size_t packed_off = uk.get_rhs_packed_offset(n_start, K);
auto* dst_ptr = dst_base + packed_off;
- rhs_pack_kxn(1,
- n_step,
- K,
- nr,
- kr,
- sr,
- copy_b_wei_stride,
- src_ptr,
- bias_buffer.data(),
- nullptr,
- dst_ptr,
- 0,
- nullptr);
+ rhs_pack_kxn(1, n_step, K, nr, kr, sr, copy_b_wei_stride, src_ptr, nullptr, nullptr, dst_ptr, 0, nullptr);
}
}
@@ -148,7 +123,7 @@ GemmCopyBF32KaiKernelExecutor::GemmCopyBF32KaiKernelExecutor(GemmCopyBKernelKaiC
void GemmCopyBF32KaiKernelExecutor::update_kernel([[maybe_unused]] const GemmCopyBKernelKaiConfig& config,
std::shared_ptr<GemmCopyBCompiledKernelF32>& kernel) const {
- ensure_kernel(kernel, sizeof(float));
+ ensure_kernel(kernel);
}
void GemmCopyBF32KaiKernelExecutor::update_config(const ov::snippets::lowered::ExpressionPtr& expr,
@@ -163,12 +138,7 @@ void GemmCopyBF32KaiKernelExecutor::execute(const GemmCopyBF32KaiKernelExecutor*
OV_CPU_JIT_EMITTER_ASSERT(executor, "has nullptr executor");
const auto& config = static_cast<const GemmCopyBKernelKaiConfig&>(executor->get_config());
const auto& kernel = executor->get_kernel();
- execute_copy_b_common<kai_run_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon>(config,
- *kernel->copy_b_ukernel,
- *kernel->bias_buffer,
- in0,
- out0,
- sizeof(float));
+ execute_copy_b_common<kai_run_rhs_pack_kxn_x32p16x1b_x32_x32_neon>(config, *kernel->copy_b_ukernel, in0, out0);
}
GemmCopyBF16KaiKernelExecutor::GemmCopyBF16KaiKernelExecutor(GemmCopyBKernelKaiConfig config)
@@ -176,7 +146,7 @@ GemmCopyBF16KaiKernelExecutor::GemmCopyBF16KaiKernelExecutor(GemmCopyBKernelKaiC
void GemmCopyBF16KaiKernelExecutor::update_kernel([[maybe_unused]] const GemmCopyBKernelKaiConfig& config,
std::shared_ptr<GemmCopyBCompiledKernelF16>& kernel) const {
- ensure_kernel(kernel, sizeof(uint16_t));
+ ensure_kernel(kernel);
}
void GemmCopyBF16KaiKernelExecutor::update_config(const ov::snippets::lowered::ExpressionPtr& expr,
@@ -191,12 +161,7 @@ void GemmCopyBF16KaiKernelExecutor::execute(const GemmCopyBF16KaiKernelExecutor*
OV_CPU_JIT_EMITTER_ASSERT(executor, "has nullptr executor");
const auto& config = static_cast<const GemmCopyBKernelKaiConfig&>(executor->get_config());
const auto& kernel = executor->get_kernel();
- execute_copy_b_common<kai_run_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon>(config,
- *kernel->copy_b_ukernel,
- *kernel->bias_buffer,
- in0,
- out0,
- sizeof(uint16_t));
+ execute_copy_b_common<kai_run_rhs_pack_kxn_x16p32x1b_x16_x16_neon>(config, *kernel->copy_b_ukernel, in0, out0);
}
} // namespace ov::intel_cpu::aarch64
diff --git a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.hpp b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.hpp
index 5fa1ee50c79..cfcfe2d1e5f 100644
--- a/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.hpp
+++ b/src/plugins/intel_cpu/src/emitters/snippets/aarch64/kernel_executors/gemm_copy_b.hpp
@@ -12,18 +12,17 @@
#endif
#include <memory>
-#include <vector>
#include "common/utils.hpp"
#include "cpu_memory.h"
#include "emitters/snippets/brgemm_generic.hpp"
#include "emitters/utils.hpp"
-#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla.h"
+#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla.h"
#include "kai/ukernels/matmul/matmul_clamp_f16_f16_f16p/kai_matmul_clamp_f16_f16_f16p_interface.h"
-#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla.h"
+#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla.h"
#include "kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p_interface.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x16p32x1b_x16_x16_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x32p16x1b_x32_x32_neon.h"
namespace ov::intel_cpu::aarch64 {
@@ -72,10 +71,8 @@ public:
private:
[[nodiscard]] size_t compute_hash() const;
- // Just default value N_blk for:
- // - iterated repacking
- // - allocated nullified memory for Bias only once with small size
- // This value doesn't depend on blocking sizes of GemmCPU
+ // Default value N_blk for iterated repacking.
+ // This value doesn't depend on blocking sizes of GemmCPU.
static constexpr size_t m_N_blk = 64;
size_t m_N = 0;
@@ -88,37 +85,35 @@ private:
struct GemmCopyBCompiledKernelF32 {
std::shared_ptr<kai_matmul_clamp_f32_f32_f32p_ukernel> copy_b_ukernel =
std::make_shared<kai_matmul_clamp_f32_f32_f32p_ukernel>(ukernel);
- std::shared_ptr<std::vector<uint8_t>> bias_buffer = std::make_shared<std::vector<uint8_t>>();
static constexpr kai_matmul_clamp_f32_f32_f32p_ukernel ukernel{
- kai_get_m_step_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_n_step_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_nr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_kr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_sr_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_lhs_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_rhs_packed_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_dst_offset_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_get_dst_size_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla,
- kai_run_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla};
+ kai_get_m_step_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_n_step_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_nr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_kr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_sr_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_lhs_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_rhs_packed_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_dst_offset_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_get_dst_size_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla,
+ kai_run_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla};
};
struct GemmCopyBCompiledKernelF16 {
std::shared_ptr<kai_matmul_clamp_f16_f16_f16p_ukernel> copy_b_ukernel =
std::make_shared<kai_matmul_clamp_f16_f16_f16p_ukernel>(ukernel);
- std::shared_ptr<std::vector<uint8_t>> bias_buffer = std::make_shared<std::vector<uint8_t>>();
static constexpr kai_matmul_clamp_f16_f16_f16p_ukernel ukernel{
- kai_get_m_step_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_n_step_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_nr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_kr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_sr_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_lhs_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_rhs_packed_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_dst_offset_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_get_dst_size_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla,
- kai_run_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla};
+ kai_get_m_step_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_n_step_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_nr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_kr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_sr_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_lhs_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_rhs_packed_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_dst_offset_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_get_dst_size_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla,
+ kai_run_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla};
};
class GemmCopyBKaiKernelExecutorBase {
@@ -131,7 +126,7 @@ protected:
GemmCopyBKernelKaiConfig& config);
template <typename CompiledKernelT>
- static void ensure_kernel(std::shared_ptr<CompiledKernelT>& kernel, size_t bias_elem_size);
+ static void ensure_kernel(std::shared_ptr<CompiledKernelT>& kernel);
};
class GemmCopyBF32KaiKernelExecutor
diff --git a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/lowered/expressions/gemm_copy_b_buffer_expressions.cpp b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/lowered/expressions/gemm_copy_b_buffer_expressions.cpp
index f62da954eb2..6f25f020cd6 100644
--- a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/lowered/expressions/gemm_copy_b_buffer_expressions.cpp
+++ b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/lowered/expressions/gemm_copy_b_buffer_expressions.cpp
@@ -7,8 +7,8 @@
#include <cstddef>
#include <memory>
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon.h"
-#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x16p32x1b_x16_x16_neon.h"
+#include "kai/ukernels/matmul/pack/kai_rhs_pack_kxn_x32p16x1b_x32_x32_neon.h"
#include "openvino/core/except.hpp"
#include "openvino/core/node.hpp"
#include "openvino/core/type.hpp"
@@ -61,8 +61,8 @@ void RepackedWeightsBufferExpression::init_allocation_size(
}
// convert byte size to element type size
const size_t packed_bytes = element_type == ov::element::f16
- ? kai_get_rhs_packed_size_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon(N, K)
- : kai_get_rhs_packed_size_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon(N, K);
+ ? kai_get_rhs_packed_size_rhs_pack_kxn_x16p32x1b_x16_x16_neon(N, K)
+ : kai_get_rhs_packed_size_rhs_pack_kxn_x32p16x1b_x32_x32_neon(N, K);
m_allocation_size = packed_bytes / element_type.size();
}
diff --git a/src/plugins/intel_cpu/thirdparty/kleidiai b/src/plugins/intel_cpu/thirdparty/kleidiai
index eaf63a6ae9a..7d82645ca2f 160000
--- a/src/plugins/intel_cpu/thirdparty/kleidiai
+++ b/src/plugins/intel_cpu/thirdparty/kleidiai
@@ -1 +1 @@
-Subproject commit eaf63a6ae9a903fb4fa8a4d004a974995011f444
+Subproject commit 7d82645ca2f3c3d58a5c0b1a96905e53916c8ff8