From: Paul Tsochantaris Date: Thu, 11 Jan 2024 14:31:52 +0000 (+0000) Subject: metal : put encoder debug group behind a define (llama/4873) X-Git-Tag: upstream/1.7.4~1145 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9fa34d79ec2d2d2ff29b13074504199481c2abbc;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp metal : put encoder debug group behind a define (llama/4873) --- 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) {