singularity.pbs 561 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #PBS -A colosse-users
  3. #PBS -l advres=MILA2019
  4. #PBS -l feature=k80
  5. #PBS -l nodes=1:gpus=1
  6. #PBS -l walltime=00:10:00
  7. module --force purge
  8. PATH=$PATH:/opt/software/singularity-3.0/bin/
  9. # set the working directory to where the job is launched
  10. cd "${PBS_O_WORKDIR}"
  11. # Singularity options
  12. IMAGE=/rap/jvb-000-aa/COURS2019/etudiants/ift6759.simg
  13. RAP=/rap/jvb-000-aa/COURS2019/etudiants/$USER
  14. mkdir -p $RAP
  15. FOLDERS=$RAP,$HOME
  16. SINGULARITY_EXEC="singularity exec --nv --bind $FOLDERS $IMAGE"
  17. # start your python script
  18. $SINGULARITY_EXEC python mnist.py