Skip to content

Commit

Permalink
Merge pull request #88 from arnaudbore/enh_memory_gpu_processes
Browse files Browse the repository at this point in the history
[WIP] Increase memory and cpu for eddy and local_tracking processes
  • Loading branch information
arnaudbore authored Dec 8, 2023
2 parents d67e568 + 312e0c2 commit 7d69625
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ if(params.help) {
"processes_denoise_t1":"$params.processes_denoise_t1",
"processes_eddy":"$params.processes_eddy",
"processes_fodf":"$params.processes_fodf",
"processes_registration":"$params.processes_registration"]
"processes_registration":"$params.processes_registration",
"processes_local_tracking":"$params.processes_local_tracking"]

engine = new groovy.text.SimpleTemplateEngine()
template = engine.createTemplate(usage.text).make(bindings)
Expand Down Expand Up @@ -735,7 +736,7 @@ concatenated_dwi_for_eddy
.set{dwi_gradients_mask_topup_files_for_eddy_topup}

process Eddy_Topup {
cpus params.processes_eddy
cpus { params.processes_eddy * task.attempt }
memory { 5.GB * task.attempt }

input:
Expand Down Expand Up @@ -799,7 +800,8 @@ dwi_for_eddy
.set{dwi_gradients_mask_topup_files_for_eddy}

process Eddy {
cpus params.processes_eddy
cpus { params.processes_eddy * task.attempt }
memory { 5.GB * task.attempt }

input:
set sid, file(dwi), file(bval), file(bvec), file(mask), readout, encoding\
Expand Down Expand Up @@ -1879,7 +1881,8 @@ fodf_for_local_tracking
.set{fodf_maps_for_local_tracking}

process Local_Tracking {
cpus 2
cpus { params.processes_local_tracking * task.attempt }
memory { 5.GB * task.attempt }

input:
set sid, file(fodf), file(tracking_mask), file(seed)\
Expand Down
5 changes: 4 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ params {
processes_brain_extraction_t1=4
processes_denoise_dwi=4
processes_denoise_t1=4
processes_eddy=1
processes_eddy=4
processes_fodf=4
processes_registration=4
processes_local_tracking=4

//**Tractoflow-ABS**//
run_tractoflow_abs = false
Expand Down Expand Up @@ -189,6 +190,7 @@ if(params.processes) {
}

singularity.autoMounts = true
singularity.runOptions = "--no-home"

profiles {

Expand All @@ -207,6 +209,7 @@ profiles {
params.processes_eddy=1
params.processes_fodf=4
params.processes_registration=1
params.processes_local_tracking=1
}

skip_preprocessing {
Expand Down

0 comments on commit 7d69625

Please sign in to comment.