How to modify slurm template to run inside singularity container #252
-
Hi @mschubert, I was just wondering how I should modify my slurm template file in order to run the #!/usr/bin/bash
#SBATCH ...
#SBATCH ...
module load singularity
ulimit -v $(( 1024 * {{ memory | 4096 }} ))
singularity exec container.sif CMQ_AUTH={{ auth }} R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
That's how I think it should work! Note that the container needs to be able to access the network on the host system. |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks! I'm about to test it out so I will report back with how it goes. |
Beta Was this translation helpful? Give feedback.
-
Okay so it works well, but only after I removed the
|
Beta Was this translation helpful? Give feedback.
Okay so it works well, but only after I removed the
CMQ_AUTH={{ auth }}
from the final line. Otherwise it produces this error: