Skip to content

Default mem_mb_per_cpu takes precedence over Snakefile mem_mb #335

@mwort

Description

@mwort

Software Versions

main branch

Describe the bug
If a default mem_mb_per_cpu is set in the profile config.yaml, any resources: mem_mb value provided in the Snakefile is ignored. This is because mem_mb_per_cpu takes precedence in this line. I believe this wasn't by design because any resource given in the Snakefile/rule should override the profile default (hence the bug report).

Possible solutions
Either we distinguish between default and rule resources in the executor before deciding which of the two mem slurm args to add to the sbatch call or we settle on one and merge them when both are given, possibly also solving the bug reported #317, i.e. let sm do the math and only parse mem_mb.

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