Skip to content

Commit

Permalink
Merge pull request #4 from epigen/partition-resource-support
Browse files Browse the repository at this point in the history
allow to define the partition within the resources part of rules
  • Loading branch information
sreichl authored Feb 22, 2023
2 parents 3c7602b + 1d6a104 commit 9396fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster.config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__default__:
error: "logs/logs_slurm/{rule}_{wildcards}.err"
output: "logs/logs_slurm/{rule}_{wildcards}.out"
partition: "{params.partition}"
qos: "{params.partition}"
kill-on-invalid-dep: "yes"
partition: "shortq"
qos: "shortq"
kill-on-invalid-dep: "yes"
2 changes: 2 additions & 0 deletions slurm-submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"mem": ("mem", "mem_mb", "ram", "memory"),
"mem-per-cpu": ("mem-per-cpu", "mem_per_cpu", "mem_per_thread"),
"nodes": ("nodes", "nnodes"),
"partition": ("partition",),
"qos": ("partition", ),
}

# parse job
Expand Down

0 comments on commit 9396fc5

Please sign in to comment.