Skip to content

Commit d7c078c

Browse files
committed
log a little bit more info on iOS
1 parent 04c99e8 commit d7c078c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml-metal.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,11 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
365365
ctx->support_simdgroup_reduction |= [ctx->device supportsFamily:MTLGPUFamilyMetal3];
366366

367367
ctx->support_simdgroup_mm = [ctx->device supportsFamily:MTLGPUFamilyApple7];
368-
#if TARGET_OS_OSX
368+
369369
GGML_METAL_LOG_INFO("%s: simdgroup reduction support = %s\n", __func__, ctx->support_simdgroup_reduction ? "true" : "false");
370370
GGML_METAL_LOG_INFO("%s: simdgroup matrix mul. support = %s\n", __func__, ctx->support_simdgroup_mm ? "true" : "false");
371371
GGML_METAL_LOG_INFO("%s: hasUnifiedMemory = %s\n", __func__, ctx->device.hasUnifiedMemory ? "true" : "false");
372+
#if TARGET_OS_OSX
372373
GGML_METAL_LOG_INFO("%s: recommendedMaxWorkingSetSize = %8.2f MB\n", __func__, ctx->device.recommendedMaxWorkingSetSize / 1e6);
373374
if (ctx->device.maxTransferRate != 0) {
374375
GGML_METAL_LOG_INFO("%s: maxTransferRate = %8.2f MB/s\n", __func__, ctx->device.maxTransferRate / 1e6);

0 commit comments

Comments
 (0)