From: Georgi Gerganov Date: Wed, 29 May 2024 17:45:25 +0000 (+0300) Subject: metal : add missing asserts (llama/7617) X-Git-Tag: upstream/0.0.1642~625 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0999c76e4982e3b41aed2b7738f7fddfab8bd0ab;p=pkg%2Fggml%2Fsources%2Fggml metal : add missing asserts (llama/7617) --- diff --git a/src/ggml-kompute.cpp b/src/ggml-kompute.cpp index ed59d2be..18ce95eb 100644 --- a/src/ggml-kompute.cpp +++ b/src/ggml-kompute.cpp @@ -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); diff --git a/src/ggml-metal.m b/src/ggml-metal.m index a7e13bdc..e7c4298a 100644 --- a/src/ggml-metal.m +++ b/src/ggml-metal.m @@ -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);