Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakemake 8 not usable with Slurm clusters offering GPUs #52

Closed
w8jcik opened this issue Mar 19, 2024 · 3 comments
Closed

Snakemake 8 not usable with Slurm clusters offering GPUs #52

w8jcik opened this issue Mar 19, 2024 · 3 comments

Comments

@w8jcik
Copy link

w8jcik commented Mar 19, 2024

As previously reported

Snakemake 8.9 still fails to submit jobs to a Slurm cluster when requesting GPU resources.

profiles/default/config.yaml

executor: slurm

default-resources:
  ...
  slurm_extra: "'--gres=gpu:1'"
Select jobs to execute...
InputFunctionException in rule [obfuscated] in file [obfuscated]/Snakefile, line 6:
Error:
  WorkflowError:
    Failed to evaluate resources value '--gres=gpu:1'.
        String arguments may need additional quoting. E.g.: --default-resources "tmpdir='/home/user/tmp'" or --set-resources "somerule:someresource='--nice=100'". This also holds for setting resources inside of a profile, where you might have to enclose them in single and double quotes, i.e. someresource: "'--nice=100'".
    SyntaxError: invalid syntax (<string>, line 1)

Versions

@cmeesters
Copy link
Member

I'm afraid I could reproduce this issue.

We are working on a fix - actually this has been fixed, should be covered by a test case and still, it reoccurred. My apologies.

@cmeesters
Copy link
Member

Thank you for your patience - I was absent and could not test.

Please update to the latest version of Snakemake: The parsing is now stable.

@w8jcik
Copy link
Author

w8jcik commented Apr 2, 2024

Thank you for help. It works now.

Just for verbosity, the issue have been fixed between version 8.10.2 and 8.10.4, most likely 8.10.2.

I tested that it works with 8.10.4.

There is one more problem with specifying GPU types, but I am creating a separate issue #58.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants