From 41780fe07ef0c0c8e4e2430ab6c96b56b45548e5 Mon Sep 17 00:00:00 2001 From: hongyang Date: Fri, 19 Dec 2025 14:41:15 +0800 Subject: [PATCH] fix x86 call due to prototype change --- ggml/src/ggml-cpu/arch/x86/repack.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-cpu/arch/x86/repack.cpp b/ggml/src/ggml-cpu/arch/x86/repack.cpp index 7dda9eea0c..22a9b03989 100644 --- a/ggml/src/ggml-cpu/arch/x86/repack.cpp +++ b/ggml/src/ggml-cpu/arch/x86/repack.cpp @@ -287,9 +287,10 @@ void ggml_quantize_mat_q8_0_4x8(const float * GGML_RESTRICT x, void * GGML_RESTR #endif } -void ggml_quantize_mat_q8_K_4x8(const float * GGML_RESTRICT x, void * GGML_RESTRICT vy, int64_t k) { +void ggml_quantize_mat_q8_K_4x8(const float * GGML_RESTRICT x, void * GGML_RESTRICT vy, int64_t k, int64_t nc) { assert(QK_K == 256); assert(k % QK_K == 0); + UNUSED(nc); const int nb = k / QK_K; block_q8_Kx4 * GGML_RESTRICT y = (block_q8_Kx4 *) vy; @@ -507,7 +508,7 @@ void ggml_quantize_mat_q8_K_4x8(const float * GGML_RESTRICT x, void * GGML_RESTR #else UNUSED(nb); UNUSED(y); - ggml_quantize_mat_q8_K_4x8_generic(x, vy, k); + ggml_quantize_mat_q8_K_4x8_generic(x, vy, k, nc); #endif }