Skip to content
Discussion options

You must be logged in to vote

Hi @lbeltrame,

yes, it's the default behaviour. Snakemake submits every rule as its own SLURM job, so each step can have its own partition. Only the GPU rule, structure_inference, pins one from slurm_partition in config/config.yaml:

slurm_partition: "gpu-el8"   # only structure_inference uses this

The CPU rules (create_features, i.e. what your first script does, plus the small download/symlink/analysis ones) don't set a partition, so they go to your cluster's default one. If that isn't the CPU queue you want, name it in the Snakemake profile config/profiles/slurm/config.yaml:

default-resources:
  - slurm_partition=cpu-el8   # <- your CPU queue

Rule-level resources win over default-resources…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lbeltrame
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants