Skip to content

Commit

Permalink
FIX: Limit 3dQwarp to maximum 4 CPUs for stability
Browse files Browse the repository at this point in the history
Resolves: #107.
  • Loading branch information
oesteban committed Nov 26, 2020
1 parent 6763b84 commit ad30e73
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 ad30e73

Please sign in to comment.