Skip to content

Commit 975ec63

Browse files
committed
metal : add missing asserts (#7617)
1 parent fb76ec3 commit 975ec63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml-kompute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,8 +1597,8 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
15971597
{
15981598
GGML_ASSERT(ne00 == ne10);
15991599

1600-
ggml_is_contiguous_2(src0);
1601-
ggml_is_contiguous_2(src1);
1600+
GGML_ASSERT(ggml_is_contiguous_2(src0));
1601+
GGML_ASSERT(ggml_is_contiguous_2(src1));
16021602

16031603
GGML_ASSERT(ne12 % ne02 == 0);
16041604
GGML_ASSERT(ne13 % ne03 == 0);

ggml-metal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,8 @@ static enum ggml_status ggml_metal_graph_compute(
15191519
{
15201520
GGML_ASSERT(ne00 == ne10);
15211521

1522-
ggml_is_contiguous_2(src0);
1523-
ggml_is_contiguous_2(src1);
1522+
GGML_ASSERT(ggml_is_contiguous_2(src0));
1523+
GGML_ASSERT(ggml_is_contiguous_2(src1));
15241524

15251525
GGML_ASSERT(ne12 % ne02 == 0);
15261526
GGML_ASSERT(ne13 % ne03 == 0);

0 commit comments

Comments
 (0)