From b876860c6214d03279e79e0babb7eb4e3e286cbd Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Wed, 30 Jul 2025 14:22:00 +0100 Subject: [PATCH] [Hardware][CPU] Build fix for ARM without BF16 (#21848) Signed-off-by: Eric Curtin --- csrc/cpu/quant.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csrc/cpu/quant.cpp b/csrc/cpu/quant.cpp index c1f7c64ea2f49..6e120b8d20a7e 100644 --- a/csrc/cpu/quant.cpp +++ b/csrc/cpu/quant.cpp @@ -16,12 +16,14 @@ struct KernelVecType { using cvt_vec_type = vec_op::FP32Vec16; }; +#if !defined(__aarch64__) || defined(ARM_BF16_SUPPORT) template <> struct KernelVecType { using load_vec_type = vec_op::BF16Vec16; using azp_adj_load_vec_type = vec_op::INT32Vec16; using cvt_vec_type = vec_op::FP32Vec16; }; +#endif template <> struct KernelVecType {