瀏覽代碼

Update configs to match student's

Pierre Delaunay 5 年之前
父節點
當前提交
5076546fa8
共有 8 個文件被更改,包括 40 次插入2 次删除
  1. 8 2
      bash.rc
  2. 8 0
      hello.pbs
  3. 0 0
      old/init.sh
  4. 0 0
      old/run_1.pbs
  5. 0 0
      old/run_2.pbs
  6. 0 0
      old/srun_1.pbs
  7. 0 0
      old/srun_2.pbs
  8. 24 0
      singularity.pbs

+ 8 - 2
bash.rc

@@ -1,11 +1,17 @@
+RAP=/rap/jvb-000-aa/COURS2019/etudiants/$USER
+mkdir -p $RAP
+
 module --force purge
 
 # make singularity 3 available
 PATH=$PATH:/opt/software/singularity-3.0/bin/
 
 # make a shortcut to create an interactive session
-alias mdebug="msub -N skynet_1 -A jvb-000-ag -l nodes=1:gpus=1,walltime=01:00:00 -I -qtest"
-export SINGULARITY_ARGS="--nv --bind $RAP,$HOME,$SCRATCH /rap/jvb-000-aa/singularityimages/pytorch.simg"
+alias mdebug="msub -N debug -A colosse-users -l advres=MILA2019,feature=k80,nodes=1:gpus=1,walltime=15:00 -I -qtest"
+
+alias fast_msub="msub -A colosse-users -l advres=MILA2019,feature=k80,nodes=1:gpus=1"
+
+export SINGULARITY_ARGS="--nv --bind $RAP,$HOME /rap/jvb-000-aa/singularityimages/pytorch.simg"
 
 alias s_shell="singularity shell $SINGULARITY_ARGS"
 alias s_exec="singularity exec $SINGULARITY_ARGS" 

+ 8 - 0
hello.pbs

@@ -0,0 +1,8 @@
+#!/bin/bash
+#PBS -A colosse-users
+#PBS -l advres=MILA2019
+#PBS -l feature=k80
+#PBS -l nodes=1:gpus=1
+#PBS -l walltime=00:01:00
+
+echo "hello world"

init.sh → old/init.sh


run_1.pbs → old/run_1.pbs


run_2.pbs → old/run_2.pbs


srun_1.pbs → old/srun_1.pbs


srun_2.pbs → old/srun_2.pbs


+ 24 - 0
singularity.pbs

@@ -0,0 +1,24 @@
+#!/bin/bash
+#PBS -A colosse-users
+#PBS -l advres=MILA2019
+#PBS -l feature=k80
+#PBS -l nodes=1:gpus=1
+#PBS -l walltime=00:10:00
+
+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}"
+
+# Singularity options
+IMAGE=/rap/jvb-000-aa/singularityimages/pytorch.simg
+
+RAP=/rap/jvb-000-aa/COURS2019/etudiants/$USER
+mkdir -p $RAP
+FOLDERS=$RAP,$HOME
+
+SINGULARITY_EXEC="singularity exec --nv --bind $FOLDERS $IMAGE"
+
+# start your python script
+$SINGULARITY_EXEC python mnist.py