]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : minor type fix (int64_t -> size_t)
authorGeorgi Gerganov <redacted>
Sun, 28 Jan 2024 16:44:58 +0000 (18:44 +0200)
committerGeorgi Gerganov <redacted>
Sun, 28 Jan 2024 17:47:31 +0000 (19:47 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index 24600862b849e9be5e0d8a5df25f75f1e0fce531..5b37487f734749dc221d6c7a61fa0539097dae9a 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -9978,7 +9978,7 @@ static void ggml_compute_forward_mul_mat(
 #if defined(GGML_USE_ACCELERATE) || defined(GGML_USE_OPENBLAS)
     if (ggml_compute_forward_mul_mat_use_blas(dst)) {
         const int64_t ne_plane      = ne01*ne00;
-        const int64_t desired_wsize = ne13*ne12*ne_plane*sizeof(float);
+        const size_t  desired_wsize = ne13*ne12*ne_plane*sizeof(float);
         UNUSED(desired_wsize);
 
         if (params->type == GGML_TASK_INIT) {