Skip to content

Commit

Permalink
Try 2 threads per ANTS process.
Browse files Browse the repository at this point in the history
  • Loading branch information
kathy-snider committed Mar 17, 2021
1 parent 7d3459e commit cee7ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ def _call(cmd, out_log, err_log, num_threads=1):
if num_threads > 1:
# set parallel environment variables
env['OMP_NUM_THREADS'] = str(num_threads)
env['ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS'] = str(1) # str(num_threads)
env['ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS'] = str(2) # str(num_threads)
if num_threads != 1:
print('Keep ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS at 1 instead of %s.' % num_threads)
with open(out_log, 'w') as out, open(err_log, 'w') as err:
Expand Down

0 comments on commit cee7ace

Please sign in to comment.