12345678910111213141516171819 |
- #!/bin/bash
- module --force purge
- PATH=$PATH:/opt/software/singularity-3.0/bin/
- # set the working directory to where the job is launched
- cd "${PBS_O_WORKDIR}"
- # Run you script inside a singularity image
- IMAGE=/rap/jvb-000-aa/singularityimages/pytorch.simg
- FOLDERS=$RAP,$HOME,$SCRATCH
- SINGULARITY_EXEC="singularity exec --nv --bind $FOLDERS $IMAGE"
- # start your python script
- $SINGULARITY_EXEC python mnist.py
|