From 91a4546a1c877159ff6c1f90c86934281fc1c08a Mon Sep 17 00:00:00 2001 From: nuwang <2070605+nuwang@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:43:10 +0530 Subject: [PATCH] Restore reverted "Add default resource params and slurm destination"" This reverts commit 0c1410fd2933e9702a496c820ab6c5c3a49710a9. --- tools.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools.yml b/tools.yml index 304bb79..2cb6619 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,19 @@ 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: + slurm_walltime: '' + slurm_partition: '' + slurm_account: '' + params: + native_specification: | + --nodes=1 --ntasks={cores} --mem={round(mem*1024)} {'--time='+ slurm_walltime if slurm_walltime else ''} {'--gres=gres:gpu:' + str(gpus) if gpus else ''} {'--partition=' + slurm_partition if slurm_partition else ''} {'--account=' + slurm_account if slurm_account else ''} + abstract: true