srun_1.pbs 1.2 KB

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