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

nativeSpecification does not accept mem unit #84

Open
marcelzwiers opened this issue Nov 6, 2023 · 0 comments
Open

nativeSpecification does not accept mem unit #84

marcelzwiers opened this issue Nov 6, 2023 · 0 comments

Comments

@marcelzwiers
Copy link

I'm using drmaa-python to run jobs on our slurm cluster and all works fine if I use:

jt.nativeSpecification = "--mem=4000"

Which I believe is interpreted as 4000 mb (default). However, if I specify the unit I get an error:

jt.nativeSpecification = "--mem=4G"
  File "/opt/bidscoin/lib/python3.10/site-packages/drmaa/session.py", line 314, in runJob
    c(drmaa_run_job, jid, sizeof(jid), jobTemplate)
  File "/opt/bidscoin/lib/python3.10/site-packages/drmaa/helpers.py", line 302, in c
    return f(*(args + (error_buffer, sizeof(error_buffer))))
  File "/opt/bidscoin/lib/python3.10/site-packages/drmaa/errors.py", line 151, in error_check
    raise _ERRORS[code - 1](error_string)
drmaa.errors.InvalidArgumentException: code 4: not an number: 4G

Using sbatch --mem=4G directly works just fine, so the syntax looks fine to me. I may have done something wrong, but I can't figure out how to specify mem in GB...?

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

1 participant