Pārlūkot izejas kodu

Add version for singularity

Pierre Delaunay 6 gadi atpakaļ
vecāks
revīzija
490bbddb20
4 mainītis faili ar 61 papildinājumiem un 0 dzēšanām
  1. 21 0
      init.sh
  2. 13 0
      init2.sh
  3. 12 0
      srun_1.pbs
  4. 15 0
      srun_2.pbs

+ 21 - 0
init.sh

@@ -0,0 +1,21 @@
+module load python/3.7.0
+
+python -m venv ~/base
+
+source ~/base/bin/activate
+
+pip install https://download.pytorch.org/whl/cu100/torch-1.0.0-cp37-cp37m-linux_x86_64.whl
+
+pip install torchvision
+
+# make a backup just in case
+cp ~/.bashrc ~/.bashrc.bak
+
+# update bashrc
+echo 'module load python/3.7.0' >> ~/.bashrc
+
+echo 'source ~/base/bin/activate' >> ~/.bashrc
+
+echo 'alias show-logs="watch tail -n 20 $(ls -rt | grep .out | tail -n 1)"' >> ~/.bashrc
+
+echo 'alias mdebug="msub -N skynet_1 -A jvb-000-ag -l nodes=1:gpus=1,walltime=01:00:00 -I -qtest"' >> ~/.bashrc

+ 13 - 0
init2.sh

@@ -0,0 +1,13 @@
+
+
+
+export  PATH=$PATH:/opt/software/singularity-3.0/bin/
+
+singularity build --sandbox ~/pytorch.simg /rap/jvb-000-aa/singularityimages/pytorch.simg
+
+
+# Add Singularity 3 to the path
+echo 'PATH=$PATH:/opt/software/singularity-3.0/bin/' >> ~/.bashrc
+
+# Helper
+alias sing_exec="singularity exec --nv --bind $RAP,$HOME,$SCRATCH /rap/jvb-000-aa/singularityimages/pytorch.simg"

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 12 - 0
srun_1.pbs


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 15 - 0
srun_2.pbs