Skip to content

Commit

Permalink
Merge pull request #63 from galaxyproject/restore_default_resource_pa…
Browse files Browse the repository at this point in the history
…rams

Restore reverted "Add default resource params and slurm destination""
  • Loading branch information
nuwang authored Sep 26, 2024
2 parents dba3405 + 91a4546 commit 5f8c248
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 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 @@ -2763,3 +2766,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

0 comments on commit 5f8c248

Please sign in to comment.