diff options
author | Paul Tsochantaris <ptsochantaris@icloud.com> | 2024-01-11 14:31:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 16:31:52 +0200 |
commit | 2a7c94db5fb67b2f8882d2d16a11bf5d8d12d397 (patch) | |
tree | ecce673bb903384d9e613d8a4e6466833428977e | |
parent | 64802ec00d6383784a9dacf616095eaced16c3c3 (diff) |
metal : put encoder debug group behind a define (#4873)
-rw-r--r-- | ggml-metal.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml-metal.m b/ggml-metal.m index 82d68cd1..9698e5a7 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -1067,7 +1067,9 @@ bool ggml_metal_graph_compute( GGML_ASSERT(!"unsupported op"); } +#ifndef GGML_METAL_NDEBUG [encoder pushDebugGroup:[NSString stringWithCString:ggml_op_desc(dst) encoding:NSUTF8StringEncoding]]; +#endif const int64_t ne00 = src0 ? src0->ne[0] : 0; const int64_t ne01 = src0 ? src0->ne[1] : 0; @@ -2426,7 +2428,9 @@ bool ggml_metal_graph_compute( } } +#ifndef GGML_METAL_NDEBUG [encoder popDebugGroup]; +#endif } if (encoder != nil) { |