Skip to content

Commit 9fd5d40

Browse files
authored
Control threading in Gibbs (#1103)
* control threading in Gibbs * update base image
1 parent 09e8ab5 commit 9fd5d40

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=pennlinc/qsiprep-base:20260809
1+
ARG BASE_IMAGE=pennlinc/qsiprep-base:20260821
22
ARG DWIDENOISE2_COMMIT=cd08ec1a0f5eb1dbc9962f80c20c2bb3428c4f93
33
# MRtrix3 "dev" as at 2026-06-22, the commit dwidenoise2 is developed against
44
ARG MRTRIX3_DWIDENOISE2_COMMIT=b98b54e9ae8168eeb9af23322a07011d4754456d

qsiprep/interfaces/tortoise.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,11 @@ class _GibbsInputSpec(TORTOISEInputSpec, SeriesPreprocReportInputSpec):
556556
nsh = traits.Int(argstr='%d', position=4)
557557
min_w = traits.Int()
558558
mask = File()
559-
num_threads = traits.Int(1, usedefault=True, nohash=True)
559+
num_threads = traits.Int(
560+
argstr='--ncores %d',
561+
nohash=True,
562+
desc='number of OMP threads',
563+
)
560564

561565

562566
class _GibbsOutputSpec(SeriesPreprocReportOutputSpec):

qsiprep/workflows/dwi/merge.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ def get_buffernode():
603603
Gibbs(
604604
kspace_coverage=partial_fourier,
605605
phase_encoding_dir=pe_code,
606+
num_threads=omp_nthreads,
606607
),
607608
name='degibbser',
608609
n_procs=omp_nthreads,

0 commit comments

Comments
 (0)