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 7153985 commit 3c1279eCopy full SHA for 3c1279e
easybuild/tools/systemtools.py
@@ -169,7 +169,7 @@ def sched_getaffinity():
169
pid = os.getpid()
170
171
cpu_setsize = 1024 # Max number of CPUs currently detectable
172
- max_cpu_setsize = ctypes.c_ulong(-1).value // 4 # (INT_MAX / 2)
+ max_cpu_setsize = cpu_mask_t(-1).value // 4 # (INT_MAX / 2)
173
# Limit it to something reasonable but still big enough
174
max_cpu_setsize = min(max_cpu_setsize, 1e9)
175
while cpu_setsize < max_cpu_setsize:
0 commit comments