Skip to content

Commit

Permalink
Merge pull request #128 from oesteban/fix/107
Browse files Browse the repository at this point in the history
FIX: Limit ``3dQwarp`` to maximum 4 CPUs for stability reasons
  • Loading branch information
oesteban authored Nov 26, 2020
2 parents 6763b84 + ad30e73 commit d1b19ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdcflows/workflows/pepolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def init_pepolar_unwarp_wf(omp_nthreads=1, matched_pe=False,

qwarp = pe.Node(afni.QwarpPlusMinus(
pblur=[0.05, 0.05], blur=[-1, -1], noweight=True, minpatch=9, nopadWARP=True,
environ={'OMP_NUM_THREADS': '%d' % omp_nthreads}),
name='qwarp', n_procs=omp_nthreads)
environ={'OMP_NUM_THREADS': f"{min(omp_nthreads, 4)}"}),
name='qwarp', n_procs=min(omp_nthreads, 4))

to_ants = pe.Node(niu.Function(function=_fix_hdr), name='to_ants',
mem_gb=0.01)
Expand Down

0 comments on commit d1b19ae

Please sign in to comment.