Skip to content

Commit

Permalink
Add default resource params and slurm destination
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Apr 30, 2024
1 parent 7afc734 commit 5b58f29
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tools.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
global:
default_inherits: default
tools:
default:
gpus: 0
cores: 1
mem: cores * 3.8
env: {}
Expand Down Expand Up @@ -2558,3 +2561,21 @@ 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
''}
abstract: true

0 comments on commit 5b58f29

Please sign in to comment.