Spaces:
Sleeping
Sleeping
Paul Tsochantaris
commited on
metal : put encoder debug group behind a define (llama/4873)
Browse files- ggml-metal.m +4 -0
ggml-metal.m
CHANGED
|
@@ -1067,7 +1067,9 @@ bool ggml_metal_graph_compute(
|
|
| 1067 |
GGML_ASSERT(!"unsupported op");
|
| 1068 |
}
|
| 1069 |
|
|
|
|
| 1070 |
[encoder pushDebugGroup:[NSString stringWithCString:ggml_op_desc(dst) encoding:NSUTF8StringEncoding]];
|
|
|
|
| 1071 |
|
| 1072 |
const int64_t ne00 = src0 ? src0->ne[0] : 0;
|
| 1073 |
const int64_t ne01 = src0 ? src0->ne[1] : 0;
|
|
@@ -2426,7 +2428,9 @@ bool ggml_metal_graph_compute(
|
|
| 2426 |
}
|
| 2427 |
}
|
| 2428 |
|
|
|
|
| 2429 |
[encoder popDebugGroup];
|
|
|
|
| 2430 |
}
|
| 2431 |
|
| 2432 |
if (encoder != nil) {
|
|
|
|
| 1067 |
GGML_ASSERT(!"unsupported op");
|
| 1068 |
}
|
| 1069 |
|
| 1070 |
+
#ifndef GGML_METAL_NDEBUG
|
| 1071 |
[encoder pushDebugGroup:[NSString stringWithCString:ggml_op_desc(dst) encoding:NSUTF8StringEncoding]];
|
| 1072 |
+
#endif
|
| 1073 |
|
| 1074 |
const int64_t ne00 = src0 ? src0->ne[0] : 0;
|
| 1075 |
const int64_t ne01 = src0 ? src0->ne[1] : 0;
|
|
|
|
| 2428 |
}
|
| 2429 |
}
|
| 2430 |
|
| 2431 |
+
#ifndef GGML_METAL_NDEBUG
|
| 2432 |
[encoder popDebugGroup];
|
| 2433 |
+
#endif
|
| 2434 |
}
|
| 2435 |
|
| 2436 |
if (encoder != nil) {
|