Skip to content

Commit 5946d98

Browse files
committed
metal : disable kernel load log
1 parent 8b2420d commit 5946d98

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ggml-metal.m

+7-4
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,17 @@ static void ggml_metal_log(enum ggml_log_level level, const char* format, ...){
238238
// load kernels
239239
{
240240
NSError * error = nil;
241-
#define GGML_METAL_ADD_KERNEL(name) \
242-
ctx->function_##name = [ctx->library newFunctionWithName:@"kernel_"#name]; \
243-
ctx->pipeline_##name = [ctx->device newComputePipelineStateWithFunction:ctx->function_##name error:&error]; \
241+
242+
/*
244243
GGML_METAL_LOG_INFO("%s: loaded %-32s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) ctx->pipeline_##name, \
245244
(int) ctx->pipeline_##name.maxTotalThreadsPerThreadgroup, \
246245
(int) ctx->pipeline_##name.threadExecutionWidth); \
246+
*/
247+
#define GGML_METAL_ADD_KERNEL(name) \
248+
ctx->function_##name = [ctx->library newFunctionWithName:@"kernel_"#name]; \
249+
ctx->pipeline_##name = [ctx->device newComputePipelineStateWithFunction:ctx->function_##name error:&error]; \
247250
if (error) { \
248-
GGML_METAL_LOG_ERROR("%s: error: load pipeline error: %s\n", __func__, [[error description] UTF8String]); \
251+
GGML_METAL_LOG_ERROR("%s: error: load pipeline error: %s\n", __func__, [[error description] UTF8String]); \
249252
return NULL; \
250253
}
251254

0 commit comments

Comments
 (0)