There was an error while loading. Please reload this page.
1 parent 66c5f67 commit 7316368Copy full SHA for 7316368
1 file changed
extra_data/utils.py
@@ -27,7 +27,7 @@ def default_num_threads(fixed_limit=16):
27
# Default to 16, OMP_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