Submit a Singularity job
__NOTOC__
Download the container image¶
Please see Deploy a container using Singularity for how to create the example container image ubuntu-python3
$ singularity pull docker://dockeruser/ubuntu-python3
$ ls
ubuntu-python3_latest.sif
Create a job script¶
Create a file called job_script.sbatch and add
#!/usr/bin/bash
#SBATCH -n 1
#SBATCH --mem-per-cpu=2048
#SBATCH--time=00:01:00
singularity run ubuntu-python3_latest.sif python3 -c "import tensorflow as tf; print(tf.__version__)"
Submit the job script
$ sbatch job_script.sbatch
When the job has finished, you can see the output in the output file
slurm-
2.5.0