Skip to content

Commit

Permalink
[ENH] limit the synths to 1 thread (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak authored Aug 8, 2023
1 parent 7cc5c92 commit 4c0ef2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qsiprep/workflows/anatomical/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def init_synthstrip_wf(omp_nthreads, do_padding=False,
name='outputnode')

synthstrip = pe.Node(
FixHeaderSynthStrip(),
FixHeaderSynthStrip(), # Threads are always fixed to 1 in the run
name="synthstrip",
n_procs=omp_nthreads)
mask_to_original_grid = pe.Node(
Expand Down Expand Up @@ -940,7 +940,7 @@ def init_synthseg_wf(omp_nthreads, sloppy, name="synthseg_wf"):
synthseg = pe.Node(
SynthSeg(
fast=sloppy,
num_threads=omp_nthreads),
num_threads=1), # Hard code to 1
n_procs=omp_nthreads,
name='synthseg')

Expand Down

0 comments on commit 4c0ef2b

Please sign in to comment.