From c204c7e9024f9614fac64b8349ff33f7064a79dd 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools.yml b/tools.yml index b1076ef..4f8943c 100644 --- a/tools.yml +++ b/tools.yml @@ -1,5 +1,8 @@ +global: + default_inherits: default tools: default: + gpus: 0 cores: 1 mem: cores * 3.8 env: {} @@ -2558,3 +2561,20 @@ tools: mem: 32 wig_to_bigWig: mem: 10 +destinations: + default: + params: + tpv_cores: '{cores}' + tpv_gpus: '{gpus}' + tpv_mem: '{mem}' + abstract: true + tpvdb_slurm: + context: + time: '' + partition: '' + account: '' + params: + native_specification: --nodes=1 --ntasks={cores} --mem={round(mem*1024)} {'--time=' + + time if time else ''} {'--gres=gres:gpu:' + str(gpus) if gpus else ''} {'--partition=' + + partition if partition else ''} {'--account=' + account if account else + ''}