https://github.com/theasp/slurm-singularity
https://github.com/theasp/slurm-singularity
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theasp/slurm-singularity
- Owner: theasp
- License: mit
- Created: 2018-08-31T23:53:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T13:16:14.000Z (over 6 years ago)
- Last Synced: 2025-01-07T19:41:42.284Z (4 months ago)
- Language: C
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
singularity/README.md at master · singularityware/singularity · GitHub
Dismiss
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
![]()
Cannot retrieve contributors at this time
Singularity plugin for SLURMThis plugin allows users to execute their SLURM jobs within a Singularity container without
having to execute Singularity directly. This assists in simplifying the invocation of the
container and hiding the implementation details.To enable the plugin, add the following line to the SLURM plugin configuration (
/etc/slurm/plugstack.conf
):required singularity.so
This works if Singularity is installed as a system package. If the install prefix is
/opt/singularity
, then
one would have:required /opt/singularity/lib/slurm/singularity.so
Note that the sysadmin may provide a default image that will be utilized if the user doesn't provide one:
required singularity.so default_image=/cvmfs/cernvm-prod.cern.ch/cvm3
Finally, a user may select their image through the
--singularity-image
optional argument:srun --singularity-image=/cvmfs/cms.cern.ch/rootfs/x86_64/centos7/latest ls -lh /
Within a batch file, you would append this header:
#SBATCH --singularity-image=/cvmfs/cms.cern.ch/rootfs/x86_64/centos7/latest
Go
Press h to open a hovercard with more details.