Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CLASS-HPC-GCP/slurm-gcp/examples/helloworld_singularity.slrm
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (17 sloc)
532 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH --partition debug | |
#SBATCH --nodes 1 | |
#SBATCH --ntasks-per-node 1 | |
#SBATCH --mem-per-cpu 2G | |
#SBATCH --time 1-0:00:00 | |
#SBATCH --job-name singularity-helloworld | |
#SBATCH --output helloworld-singularity-%J.log | |
date | |
hostname | |
module load singularity | |
echo "================================================ " | |
echo "download image" | |
singularity pull shub://singularityhub/hello-world | |
echo "Executing the hello-world image" | |
singularity run ./hello-world_latest.sif | |
echo "================================================ " | |