srun_1.pbs 415 B

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