Selaa lähdekoodia

Add version for singularity

Pierre Delaunay 6 vuotta sitten
vanhempi
commit
490bbddb20
4 muutettua tiedostoa jossa 61 lisäystä ja 0 poistoa
  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"

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 12 - 0
srun_1.pbs


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 15 - 0
srun_2.pbs