Skip to content

Commit

Permalink
fix shared mem config (#409)
Browse files Browse the repository at this point in the history
* fix shared mem config

* docker test

* update docker test

* update docker test

* fix docker test

* undo docker test
  • Loading branch information
KaiWaldrant authored Mar 19, 2024
1 parent 31f6b55 commit 282f0b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wf_utils/labels_tw.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ process {
disk = { 200.GB * task.attempt }
}
withLabel: lowsharedmem {
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size=${task.memory.mega * 0.05}mb" : ""}
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size ${String.format("%.0f",task.memory.mega * 0.05)}" : ""}
}
withLabel: midsharedmem {
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size=${task.memory.mega * 0.1}mb" : ""}
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size ${String.format("%.0f",task.memory.mega * 0.1)}" : ""}
}
withLabel: highsharedmem {
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size=${task.memory.mega * 0.25}mb" : ""}
containerOptions = { workflow.containerEngine != 'singularity' ? "--shm-size ${String.format("%.0f",task.memory.mega * 0.25)}" : ""}
}
}

Expand Down

0 comments on commit 282f0b3

Please sign in to comment.