]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : avoid conv 2d kernel round up
authorGeorgi Gerganov <redacted>
Mon, 26 Jun 2023 18:03:59 +0000 (21:03 +0300)
committerGeorgi Gerganov <redacted>
Mon, 26 Jun 2023 18:03:59 +0000 (21:03 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index 4d51e31ed45c1c2fd6a7e3760654a1a63a86cd7b..c179bee9383880d4346c7d3875fefb52350a25cd 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -13508,8 +13508,7 @@ static void ggml_compute_forward_conv_2d_sk_p0_f16_f32(
     const int nk1 = ne01;
 
     // size of the convolution row - the kernel size unrolled across all channels
-    // round-up so it is more suitable for SIMD
-    const int ew0 = ggml_up32(nk0*nk1*ne02);
+    const int ew0 = nk0*nk1*ne02;
 
     GGML_ASSERT(nb00 == sizeof(ggml_fp16_t));
     GGML_ASSERT(nb10 == sizeof(float));