]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml: fix compile error for RISC-V (#8623)
authorMark Zhuang <redacted>
Mon, 22 Jul 2024 07:56:45 +0000 (15:56 +0800)
committerGitHub <redacted>
Mon, 22 Jul 2024 07:56:45 +0000 (10:56 +0300)
ggml/src/ggml-quants.c

index 1defed3caad391ae7d105bd8b1f95151e3db9dd3..47418597c00d8ff4abfb60e9d287dd6e0b1b4370 100644 (file)
@@ -4748,7 +4748,7 @@ void ggml_vec_dot_q5_0_q8_0(int n, float * restrict s, size_t bs, const void * r
 
         int sumi = __riscv_vmv_x_s_i32m1_i32(vs2);
 
-        sumf += (GGML_FP16_TO_FP32(x[i].d)*GGML_FP16_TO_FP32(y[i].d)) * sumi;
+        sumf += (GGML_FP16_TO_FP32(x[ib].d)*GGML_FP16_TO_FP32(y[ib].d)) * sumi;
     }
 
 #elif defined(__POWER9_VECTOR__)