]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
sync : forgot to sync ggml.h
authorGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 07:43:02 +0000 (09:43 +0200)
committerGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 07:43:02 +0000 (09:43 +0200)
include/ggml/ggml.h
tests/test-mul-mat2.c

index a217d2d5f94335ea64612ff2e6f254317cd1d8d6..f3c9e5a31991d746627fcbd420b94e6f069aa156 100644 (file)
@@ -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
 }
index 94a5e2768d3f05dc6a3ec1b42886628e2006ef34..bfc82ccaf856677d681d382094a45cd63c59d84d 100644 (file)
@@ -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];