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

Error with --exclusive option #44

Open
MahmAbdelwahab opened this issue Mar 17, 2024 · 2 comments
Open

Error with --exclusive option #44

MahmAbdelwahab opened this issue Mar 17, 2024 · 2 comments

Comments

@MahmAbdelwahab
Copy link

Hello everyone,

When using sourceSlurm or slurmr via command line, and the R file contain the following sbatch directives

#!/bin/sh
#SBATCH --job-name=simRMD
#SBATCH --mem-per-cpu=10G
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --exclusive

it returns the following error:
sbatch: error: Invalid --exclusive specification
Return code (status): 255

looking at the generated .sh file I see that slurmr appends the following : #SBATCH --exclusive=--exclusive
is that behaviour expected ?

Best,

Mahmoud

@gvegayon
Copy link
Member

gvegayon commented Apr 4, 2024

Interesting! Can you provide a little bit more of detail? Could you share the created batch file?

@MahmAbdelwahab
Copy link
Author

Sure,
hers's the header in the .R file

#!/bin/sh
#SBATCH --job-name=Exclusive_Test
#SBATCH --mem-per-cpu=5G
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=2
#SBATCH --time=2-00:00:00
#SBATCH --exclusive

the outputed .sh file fails and the content:

#!/bin/sh
#SBATCH --job-name=Exclusive_Test
#SBATCH --mem-per-cpu=5G
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=2
#SBATCH --time=2-00:00:00
#SBATCH --exclusive=--exclusive
.../Rscript --vanilla *.R

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