metal : print only skipped kernels
This commit is contained in:
parent
0658b0275f
commit
ae551e30ee
1 changed files with 6 additions and 4 deletions
10
ggml-metal.m
10
ggml-metal.m
|
@ -364,6 +364,11 @@ struct ggml_metal_context * ggml_metal_init(int n_cb) {
|
||||||
ctx->kernels[i].pipeline = nil;
|
ctx->kernels[i].pipeline = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
GGML_METAL_LOG_INFO("%s: loaded %-32s %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) \
|
#define GGML_METAL_ADD_KERNEL(e, name, supported) \
|
||||||
if (supported) { \
|
if (supported) { \
|
||||||
struct ggml_metal_kernel * kernel = &ctx->kernels[e]; \
|
struct ggml_metal_kernel * kernel = &ctx->kernels[e]; \
|
||||||
|
@ -373,11 +378,8 @@ struct ggml_metal_context * ggml_metal_init(int n_cb) {
|
||||||
GGML_METAL_LOG_ERROR("%s: error: load pipeline error: %s\n", __func__, [[error description] UTF8String]); \
|
GGML_METAL_LOG_ERROR("%s: error: load pipeline error: %s\n", __func__, [[error description] UTF8String]); \
|
||||||
return NULL; \
|
return NULL; \
|
||||||
} \
|
} \
|
||||||
GGML_METAL_LOG_INFO("%s: loaded %-32s %16p | th_max = %4d | th_width = %4d\n", __func__, "kernel_"#name, (void *) kernel->pipeline, \
|
|
||||||
(int) kernel->pipeline.maxTotalThreadsPerThreadgroup, \
|
|
||||||
(int) kernel->pipeline.threadExecutionWidth); \
|
|
||||||
} else { \
|
} else { \
|
||||||
GGML_METAL_LOG_INFO("%s: skipping %-32s\n", __func__, "kernel_"#name); \
|
GGML_METAL_LOG_WARN("%s: skipping %-32s (not supported)\n", __func__, "kernel_"#name); \
|
||||||
}
|
}
|
||||||
|
|
||||||
// simd_sum and simd_max requires MTLGPUFamilyApple7
|
// simd_sum and simd_max requires MTLGPUFamilyApple7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue