From 282f0b389216bfb0c36dd51798b3a0f88ff6e1e0 Mon Sep 17 00:00:00 2001 From: Kai Waldrant Date: Tue, 19 Mar 2024 10:16:28 +0100 Subject: [PATCH] fix shared mem config (#409) * fix shared mem config * docker test * update docker test * update docker test * fix docker test * undo docker test --- src/wf_utils/labels_tw.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wf_utils/labels_tw.config b/src/wf_utils/labels_tw.config index 2af089636a..6e19a98ee4 100644 --- a/src/wf_utils/labels_tw.config +++ b/src/wf_utils/labels_tw.config @@ -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)}" : ""} } }