From 4644d2821357eb7e2eb53264c0084cf0f11ea538 Mon Sep 17 00:00:00 2001 From: Yibo Cai Date: Fri, 10 Apr 2026 09:58:07 +0800 Subject: [PATCH] [sgl-kernel/cpu] fix build error on non-x86 platform (#22245) Co-authored-by: Ma Mingfei --- sgl-kernel/csrc/cpu/gemm_int4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgl-kernel/csrc/cpu/gemm_int4.cpp b/sgl-kernel/csrc/cpu/gemm_int4.cpp index e541f1bfc..e2da063a0 100644 --- a/sgl-kernel/csrc/cpu/gemm_int4.cpp +++ b/sgl-kernel/csrc/cpu/gemm_int4.cpp @@ -19,11 +19,11 @@ struct ActDtype { using type = uint8_t; }; +#if defined(CPU_CAPABILITY_AVX512) struct alignas(32) m256i_wrapper { __m256i data; }; -#if defined(CPU_CAPABILITY_AVX512) inline std::array load_zps_4vnni(const int8_t* __restrict__ zps) { // broadcast 01234567 to // 01234567012345670123456701234567