Pierre Delaunay пре 6 година
родитељ
комит
5c4cef4d9b
2 измењених фајлова са 15 додато и 13 уклоњено
  1. 15 0
      bash.rc
  2. 0 13
      init2.sh

+ 15 - 0
bash.rc

@@ -0,0 +1,15 @@
+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 s_shell="singularity shell $SINGULARITY_ARGS"
+alias s_exec="singularity exec $SINGULARITY_ARGS" 
+
+alias show_err="watch tail -n 20 $(ls -rt | grep .err | tail -n 1)"
+alias show_out="watch tail -n 20 $(ls -rt | grep .out | tail -n 1)"
+alias rm_logs="rm *.out *.err"

+ 0 - 13
init2.sh

@@ -1,13 +0,0 @@
-
-
-
-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"