From 5cd448c700fc2b3dfc0ce11ae932e3a00e5897a1 Mon Sep 17 00:00:00 2001 From: nuwang <2070605+nuwang@users.noreply.github.com> Date: Mon, 29 Apr 2024 09:00:16 +0530 Subject: [PATCH] Add default resource params and slurm destination --- tools.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools.yml b/tools.yml index b1076ef..e1e3991 100644 --- a/tools.yml +++ b/tools.yml @@ -1,3 +1,6 @@ +global: + default_inherits: default + tools: default: cores: 1 @@ -2558,3 +2561,21 @@ tools: mem: 32 wig_to_bigWig: mem: 10 + +# template destinations +destinations: + default: + abstract: true + params: + # the following params are stored so that resource analytics can be performed + tpv_gpus: {gpus} + tpv_cores: {cores} + tpv_mem: {mem} + tpvdb_slurm: + abstract: true + context: + time: "" + partition: "" + account: "" + params: + native_specification: "--nodes=1 --ntasks={cores} --mem={round(mem*1024)} --time={time} {'--gres=gres:gpu:' + str(gpus) if gpus else ''} {'--partition=' + partition if partition else ''} {'--account=' + account if account else ''}"