Skip to content

Commit

Permalink
log a little bit more info on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
azarovalex committed Jan 13, 2024
1 parent 04c99e8 commit d7c078c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,11 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
ctx->support_simdgroup_reduction |= [ctx->device supportsFamily:MTLGPUFamilyMetal3];

ctx->support_simdgroup_mm = [ctx->device supportsFamily:MTLGPUFamilyApple7];
#if TARGET_OS_OSX

GGML_METAL_LOG_INFO("%s: simdgroup reduction support = %s\n", __func__, ctx->support_simdgroup_reduction ? "true" : "false");
GGML_METAL_LOG_INFO("%s: simdgroup matrix mul. support = %s\n", __func__, ctx->support_simdgroup_mm ? "true" : "false");
GGML_METAL_LOG_INFO("%s: hasUnifiedMemory = %s\n", __func__, ctx->device.hasUnifiedMemory ? "true" : "false");
#if TARGET_OS_OSX
GGML_METAL_LOG_INFO("%s: recommendedMaxWorkingSetSize = %8.2f MB\n", __func__, ctx->device.recommendedMaxWorkingSetSize / 1e6);
if (ctx->device.maxTransferRate != 0) {
GGML_METAL_LOG_INFO("%s: maxTransferRate = %8.2f MB/s\n", __func__, ctx->device.maxTransferRate / 1e6);
Expand Down

0 comments on commit d7c078c

Please sign in to comment.