srun_2.pbs 1.2 KB

12345678910111213141516
  1. #!/bin/bash
  2. #PBS -N skynet_1
  3. #PBS -A jvb-000-ag
  4. #PBS -l nodes=1:gpus=1,walltime=00:01:00
  5. # set the working directory to where the job is launched 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 $SINGULARITY_EXEC python mnist.py