Skip to content

Commit 46323fa

Browse files
committed
metal : hide debug messages from normal log
1 parent 5b359bb commit 46323fa

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ggml/src/ggml-metal.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -596,17 +596,12 @@ @implementation GGMLMetalClass
596596
ctx->kernels[i].pipeline = nil;
597597
}
598598

599-
/*
600-
GGML_LOG_INFO("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
601-
(int) kernel->pipeline.maxTotalThreadsPerThreadgroup, \
602-
(int) kernel->pipeline.threadExecutionWidth); \
603-
*/
604599
#define GGML_METAL_ADD_KERNEL(e, name, supported) \
605600
if (supported) { \
606601
struct ggml_metal_kernel * kernel = &ctx->kernels[e]; \
607602
id<MTLFunction> metal_function = [metal_library newFunctionWithName:@"kernel_"#name]; \
608603
kernel->pipeline = [device newComputePipelineStateWithFunction:metal_function error:&error]; \
609-
GGML_LOG_INFO("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
604+
GGML_LOG_DEBUG("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
610605
(int) kernel->pipeline.maxTotalThreadsPerThreadgroup, \
611606
(int) kernel->pipeline.threadExecutionWidth); \
612607
[metal_function release]; \

0 commit comments

Comments
 (0)