Skip to content

get_cpus_per_task() assigns 1 to cpus_per_task when not specified #27

@therealjpetereit

Description

@therealjpetereit

Hello and merry 2025 🎉🙌

I am using the execellent Snakemake workflow automation our SLURM HPC Cluster in Western Australia.

As most HPC clusters there are specific rules on what job submissions are allowed and which are not.

For us there is a rule that if I request a GPU node I cannot set cpus_per_task=x

The problem I am encountering is that when I omit cpus_per_task=x from my config.yaml or snakefile resources, the slurm executor
plugin will automatically set cpus_per_task=1 as defined by the get_cpus_per_task() function.

Is there a way to instead of setting it to 1, to make slurm do this?

lets say if I do cpus_per_task='default' the plugin would simply omit setting a cpus_per_task value

Cheers
Jakob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions