Skip to content

Commit

Permalink
metal : hide debug messages from normal log
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Nov 9, 2024
1 parent 5b359bb commit 46323fa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ggml/src/ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -596,17 +596,12 @@ @implementation GGMLMetalClass
ctx->kernels[i].pipeline = nil;
}

/*
GGML_LOG_INFO("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
(int) kernel->pipeline.maxTotalThreadsPerThreadgroup, \
(int) kernel->pipeline.threadExecutionWidth); \
*/
#define GGML_METAL_ADD_KERNEL(e, name, supported) \
if (supported) { \
struct ggml_metal_kernel * kernel = &ctx->kernels[e]; \
id<MTLFunction> metal_function = [metal_library newFunctionWithName:@"kernel_"#name]; \
kernel->pipeline = [device newComputePipelineStateWithFunction:metal_function error:&error]; \
GGML_LOG_INFO("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
GGML_LOG_DEBUG("%s: loaded %-40s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
(int) kernel->pipeline.maxTotalThreadsPerThreadgroup, \
(int) kernel->pipeline.threadExecutionWidth); \
[metal_function release]; \
Expand Down

0 comments on commit 46323fa

Please sign in to comment.