]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
metal : put encoder debug group behind a define (llama/4873)
authorPaul Tsochantaris <redacted>
Thu, 11 Jan 2024 14:31:52 +0000 (14:31 +0000)
committerGeorgi Gerganov <redacted>
Thu, 11 Jan 2024 19:50:01 +0000 (21:50 +0200)
ggml-metal.m

index 82d68cd1bf1f10aa2a4510bbe9744cb5fc636a5d..9698e5a79cc7da5be4f058d2b1bffdf6affc7f67 100644 (file)
@@ -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) {