Snakemake-Profiles / slurm

Cookiecutter for snakemake slurm profile
MIT License
126 stars 44 forks source link

Specifying GRES (gpu, local storage) and constraints #86

Closed holtgrewe closed 2 years ago

holtgrewe commented 2 years ago

I have the requirement of specifying

I propose that this could be defined as

rule myrule:
  # ...
  resources:
    # ...
    gres=[{"type": "gpu", "count": 1}, {"type": "localtmp", "count": 1024}],
    constraint="haswell|broadwell",

I have seen some doubts regarding this in other issues. I believe that these are common requirements that Slurm users will have.

What do you think?

percyfal commented 2 years ago

Yes, there should definitely be support for this. Adding support for constraint is trivial. Couldn't the gres resources be as simple as

gres=["gpu:tesla:1", "localtmp:1024"]

or are there other peculiarities you wish to address?