]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
metal : avoid uint (llama/11019)
authorGeorgi Gerganov <redacted>
Fri, 3 Jan 2025 09:26:14 +0000 (11:26 +0200)
committerGeorgi Gerganov <redacted>
Sat, 4 Jan 2025 08:45:01 +0000 (10:45 +0200)
ggml/src/ggml-metal/ggml-metal.m

index 28f590f9216beed95e766a91046a4506d71f4b98..a85502ee0893b5bb4c33766aa35bffd857df1fd1 100644 (file)
@@ -2067,8 +2067,8 @@ static void ggml_metal_encode_node(
                 GGML_ASSERT(ne12 % ne02 == 0);
                 GGML_ASSERT(ne13 % ne03 == 0);
 
-                const uint r2 = ne12/ne02;
-                const uint r3 = ne13/ne03;
+                const uint32_t r2 = ne12/ne02;
+                const uint32_t r3 = ne13/ne03;
 
                 // find the break-even point where the matrix-matrix kernel becomes more efficient compared
                 // to the matrix-vector kernel