From e0abac1be7107bfe9bc808b07b1a8812e4baf9db Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 7 Jan 2023 09:43:02 +0200 Subject: [PATCH] sync : forgot to sync ggml.h --- include/ggml/ggml.h | 2 ++ tests/test-mul-mat2.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ggml/ggml.h b/include/ggml/ggml.h index a217d2d..f3c9e5a 100644 --- a/include/ggml/ggml.h +++ b/include/ggml/ggml.h @@ -731,6 +731,8 @@ int ggml_cpu_has_f16c(void); int ggml_cpu_has_fp16_va(void); int ggml_cpu_has_wasm_simd(void); int ggml_cpu_has_blas(void); +int ggml_cpu_has_sse3(void); +int ggml_cpu_has_vsx(void); #ifdef __cplusplus } diff --git a/tests/test-mul-mat2.c b/tests/test-mul-mat2.c index 94a5e27..bfc82cc 100644 --- a/tests/test-mul-mat2.c +++ b/tests/test-mul-mat2.c @@ -208,6 +208,8 @@ void mul_mat_vec_gq_1( void quantize_2(const float * src, void * dst, int n, int k) { char * p0 = dst; + gq_t pp[QB]; + for (int j = 0; j < n; j++) { for (int i = 0; i < k/QK; i++) { float min = FLT_MAX; @@ -254,7 +256,7 @@ void quantize_2(const float * src, void * dst, int n, int k) { //printf("min/max/d/id: %f %f %f %f\n", min, max, d, id); for (int s = 0; s < QK/gq_t_bits; ++s) { - gq_t pp[QB] = {0}; + memset(pp, 0, sizeof(pp)); for (int l = 0; l < gq_t_bits; l++) { const float v = src[j*k + i*QK + s*gq_t_bits + l];