diff --git a/conf/vsc_kul_uhasselt.config b/conf/vsc_kul_uhasselt.config index 92e9780d..69e938e8 100644 --- a/conf/vsc_kul_uhasselt.config +++ b/conf/vsc_kul_uhasselt.config @@ -69,7 +69,7 @@ profiles { singularity.runOptions = '--containall --cleanenv --nv' clusterOptions = { // suggested to use 9 cpus per gpu - def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/9) as int) + def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/9) as int) "--gres=gpu:${gpus} --clusters=genius --account=$tier1_project" } @@ -92,7 +92,7 @@ profiles { // 768 - 65 so 65GB for overhead, max is 720000MB resourceLimits = [ memory: 703.GB, cpus: 36, time: 168.h] clusterOptions = { - def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/9) as int) + def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/9) as int) "--gres=gpu:${gpus} --clusters=genius --account=$tier1_project" } @@ -124,7 +124,7 @@ profiles { singularity.runOptions = '--containall --cleanenv --nv' clusterOptions = { // suggested to use 16 cpus per gpu - def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/16) as int) + def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/16) as int) "--gres=gpu:${gpus} --clusters=wice --account=$tier1_project" } @@ -147,7 +147,7 @@ profiles { // 768 - 65 so 65GB for overhead, max is 720000MB resourceLimits = [ memory: 703.GB, cpus: 64, time: 168.h ] clusterOptions = { - def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/16) as int) + def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/16) as int) "--gres=gpu:${gpus} --clusters=wice --account=$tier1_project" }