]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
metal : add missing asserts (llama/7617)
authorGeorgi Gerganov <redacted>
Wed, 29 May 2024 17:45:25 +0000 (20:45 +0300)
committerGeorgi Gerganov <redacted>
Sat, 15 Jun 2024 19:05:47 +0000 (22:05 +0300)
src/ggml-kompute.cpp
src/ggml-metal.m

index ed59d2be64091fcef6ee46034d39d98c5ea3e45f..18ce95ebf1dac9555db70762b59482b6ead98d63 100644 (file)
@@ -1597,8 +1597,8 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
                     {
                         GGML_ASSERT(ne00 == ne10);
 
-                        ggml_is_contiguous_2(src0);
-                        ggml_is_contiguous_2(src1);
+                        GGML_ASSERT(ggml_is_contiguous_2(src0));
+                        GGML_ASSERT(ggml_is_contiguous_2(src1));
 
                         GGML_ASSERT(ne12 % ne02 == 0);
                         GGML_ASSERT(ne13 % ne03 == 0);
index a7e13bdcfe07f1c363cf4c1049efdfe9bf8ee48f..e7c4298a283f5726a6747da4d2291e600348c924 100644 (file)
@@ -1519,8 +1519,8 @@ static enum ggml_status ggml_metal_graph_compute(
                     {
                         GGML_ASSERT(ne00 == ne10);
 
-                        ggml_is_contiguous_2(src0);
-                        ggml_is_contiguous_2(src1);
+                        GGML_ASSERT(ggml_is_contiguous_2(src0));
+                        GGML_ASSERT(ggml_is_contiguous_2(src1));
 
                         GGML_ASSERT(ne12 % ne02 == 0);
                         GGML_ASSERT(ne13 % ne03 == 0);