Spaces:
Running
Running
metal : add missing asserts (llama/7617)
Browse files- ggml-kompute.cpp +2 -2
- ggml-metal.m +2 -2
ggml-kompute.cpp
CHANGED
|
@@ -1597,8 +1597,8 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
|
|
| 1597 |
{
|
| 1598 |
GGML_ASSERT(ne00 == ne10);
|
| 1599 |
|
| 1600 |
-
ggml_is_contiguous_2(src0);
|
| 1601 |
-
ggml_is_contiguous_2(src1);
|
| 1602 |
|
| 1603 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 1604 |
GGML_ASSERT(ne13 % ne03 == 0);
|
|
|
|
| 1597 |
{
|
| 1598 |
GGML_ASSERT(ne00 == ne10);
|
| 1599 |
|
| 1600 |
+
GGML_ASSERT(ggml_is_contiguous_2(src0));
|
| 1601 |
+
GGML_ASSERT(ggml_is_contiguous_2(src1));
|
| 1602 |
|
| 1603 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 1604 |
GGML_ASSERT(ne13 % ne03 == 0);
|
ggml-metal.m
CHANGED
|
@@ -1519,8 +1519,8 @@ static enum ggml_status ggml_metal_graph_compute(
|
|
| 1519 |
{
|
| 1520 |
GGML_ASSERT(ne00 == ne10);
|
| 1521 |
|
| 1522 |
-
ggml_is_contiguous_2(src0);
|
| 1523 |
-
ggml_is_contiguous_2(src1);
|
| 1524 |
|
| 1525 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 1526 |
GGML_ASSERT(ne13 % ne03 == 0);
|
|
|
|
| 1519 |
{
|
| 1520 |
GGML_ASSERT(ne00 == ne10);
|
| 1521 |
|
| 1522 |
+
GGML_ASSERT(ggml_is_contiguous_2(src0));
|
| 1523 |
+
GGML_ASSERT(ggml_is_contiguous_2(src1));
|
| 1524 |
|
| 1525 |
GGML_ASSERT(ne12 % ne02 == 0);
|
| 1526 |
GGML_ASSERT(ne13 % ne03 == 0);
|