ggml: fix compile error for RISC-V (#8623)

This commit is contained in:
Mark Zhuang 2024-07-22 15:56:45 +08:00 committed by GitHub
parent b7c11d36e6
commit 04bab6b7da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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); 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__) #elif defined(__POWER9_VECTOR__)