Skip to content

Commit 3ae54f4

Browse files
authored
Fix build error in MacOS 10.13
1 parent 08cd4ac commit 3ae54f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/detection/gpu/gpu_apple.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@
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
74+
7475
}
7576
return NULL;
7677
}

0 commit comments

Comments
 (0)