From bf707c2e948824af39e842c0830662734607c7e0 Mon Sep 17 00:00:00 2001 From: Shu Niu Date: Tue, 11 Feb 2025 14:15:32 +0800 Subject: [PATCH] GPU (macOS): fix build error in MacOS 10.13 (#1556) * Fix build error in MacOS 10.13 * Update gpu_apple.m --------- Co-authored-by: Carter Li --- src/detection/gpu/gpu_apple.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_apple.m b/src/detection/gpu/gpu_apple.m index 9334c684..943bd16c 100644 --- a/src/detection/gpu/gpu_apple.m +++ b/src/detection/gpu/gpu_apple.m @@ -67,10 +67,10 @@ const char* ffGpuDetectMetal(FFlist* gpus) gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE; gpu->index = (uint32_t) device.locationNumber; - #endif if (device.hasUnifiedMemory && device.recommendedMaxWorkingSetSize > 0) gpu->shared.total = device.recommendedMaxWorkingSetSize; + #endif } return NULL; }