There was an error while loading. Please reload this page.
1 parent 66c5f67 commit 2167dcdCopy full SHA for 2167dcd
1 file changed
extra_data/utils.py
@@ -24,10 +24,10 @@ def available_cpu_cores():
24
25
26
def default_num_threads(fixed_limit=16):
27
- # Default to 16, OMP_NUM_THREADS, or available CPU cores (picking lowest)
+ # Default to 16, EXTRA_NUM_THREADS, or available CPU cores (picking lowest)
28
threads_limits = ([fixed_limit, available_cpu_cores()])
29
try:
30
- threads_limits.append(int(os.environ['OMP_NUM_THREADS']))
+ threads_limits.append(int(os.environ['EXTRA_NUM_THREADS']))
31
except (KeyError, ValueError): # Not set, or not an integer
32
pass
33
return min(threads_limits)
0 commit comments