From 49810a69b399c32c52bf96fa20813c049b646922 Mon Sep 17 00:00:00 2001 From: phue Date: Fri, 4 Feb 2022 10:31:58 +0100 Subject: [PATCH] cbe: add gpu support just in case.. note that this will need --nv in containerOptions in order to mount cuda libs into the container --- conf/cbe.config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/cbe.config b/conf/cbe.config index a8bf05d..1cdccba 100755 --- a/conf/cbe.config +++ b/conf/cbe.config @@ -9,9 +9,7 @@ process { executor = 'slurm' queue = { task.memory <= 170.GB ? 'c' : 'm' } module = ['build-env/.f2021', 'build-env/f2021', 'anaconda3/2021.11'] - - // --signal option will be handled by nextflow after 21.10.0 release (see https://github.com/nextflow-io/nextflow/issues/2163) - clusterOptions = { '--signal B:USR2 ' << ( (queue == 'c' & task.time <= 1.h) ? '--qos rapid' : ( task.time <= 8.h ? '--qos short': ( task.time <= 48.h ? '--qos medium' : '--qos long' ) ) ) } + clusterOptions = { ( task.queue == 'g' ? '--gres gpu:1 ' : '' ) << ( (task.queue == 'c' & task.time <= 1.h) ? '--qos rapid' : ( task.time <= 8.h ? '--qos short': ( task.time <= 48.h ? '--qos medium' : '--qos long' ) ) ) } } singularity {