We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d377b9 commit 442d58bCopy full SHA for 442d58b
src/detection/gpu/gpu_apple.m
@@ -71,7 +71,7 @@
71
else if ([device supportsFamily:MTLGPUFamilyCommon1])
72
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1");
73
74
- gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
+ gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
75
gpu->index = (uint32_t) device.locationNumber;
76
77
if (device.hasUnifiedMemory && device.recommendedMaxWorkingSetSize > 0)
0 commit comments