Skip to content

Commit ad30e73

Browse files
committed
FIX: Limit 3dQwarp to maximum 4 CPUs for stability
Resolves: #107.
1 parent 6763b84 commit ad30e73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdcflows/workflows/pepolar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def init_pepolar_unwarp_wf(omp_nthreads=1, matched_pe=False,
122122

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

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

0 commit comments

Comments
 (0)