LLM inference in C/C++
C++ ggml
ggml-cpu(s390x) : fix q5_1 uninitialized v_acc (#28332)
Aaron Teo832fd6f1741a
diff --git a/ggml/src/ggml-cpu/arch/s390/quants.c b/ggml/src/ggml-cpu/arch/s390/quants.cindex 500857579a..d3436c24b5 100644--- a/ggml/src/ggml-cpu/arch/s390/quants.c+++ b/ggml/src/ggml-cpu/arch/s390/quants.c@@ -636,7 +636,7 @@ void ggml_vec_dot_q5_1_q8_1(int n, float * GGML_RESTRICT s, size_t bs, const voiconst float32x4_t v_xyf = vec_float(v_xy);const float32x4_t v_d = vec_splats(GGML_CPU_FP16_TO_FP32(x0->d) * GGML_CPU_FP16_TO_FP32(y0->d));- const float32x4_t v_acc = vec_madd(v_xyf, v_d, v_acc);+ const float32x4_t v_acc = vec_madd(v_xyf, v_d, vec_splats(0.0f));sumf += vec_hsum_f32x4(v_acc) + summs;}