Limit threads for mris_expand - #491
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #491 +/- ##
==========================================
+ Coverage 70.87% 75.03% +4.16%
==========================================
Files 25 25
Lines 2067 2067
Branches 268 268
==========================================
+ Hits 1465 1551 +86
+ Misses 544 448 -96
- Partials 58 68 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
FWIW, I would delete that smriprep/src/smriprep/workflows/surfaces.py Lines 236 to 241 in afde296 to use: midthickness = pe.MapNode(
MakeMidthickness(
thickness=True,
distance=0.5,
out_name='midthickness',
+ environ={'OMP_SCHEDULE': 'dynamic'},
),
iterfield='in_file',
name='midthickness',
- n_procs=min(omp_nthreads, 12),
+ n_procs=min(omp_nthreads, 8),
)The purpose of the Incidentally, I thought you were saying that the returns were already diminishing significantly by 4 threads. Are you sure you want to max out at 8? |
|
Sorry, I thought you'd said to close the PR, but now I can't see the comment... |
Limits the threads for mris_expand and changes the OpenMP scheduler to dynamic.
Fixes #490.