Skip to content

Commit bf707c2

Browse files
niu541412CarterLi
andauthored
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 <[email protected]>
1 parent 08cd4ac commit bf707c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/gpu/gpu_apple.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767

6868
gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
6969
gpu->index = (uint32_t) device.locationNumber;
70-
#endif
7170

7271
if (device.hasUnifiedMemory && device.recommendedMaxWorkingSetSize > 0)
7372
gpu->shared.total = device.recommendedMaxWorkingSetSize;
73+
#endif
7474
}
7575
return NULL;
7676
}

0 commit comments

Comments
 (0)