Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
caffe_singularity [2017/07/13 12:13] – [Install or (bootsrap) the container the image] admincaffe_singularity [2017/07/13 18:00] (Version actuelle) – [Install or (bootsrap) the container the image] admin
Ligne 89: Ligne 89:
  
 echo "export PATH PYTHONPATH LD_LIBRARY_PATH LIBRARY_PATH CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH" >> /environment  echo "export PATH PYTHONPATH LD_LIBRARY_PATH LIBRARY_PATH CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH" >> /environment 
 +ln -s /environment /.singularity.d/env/90-env.sh
  
 %runscript %runscript
Ligne 96: Ligne 96:
 %test %test
 # commands to be executed within container at close of bootstrap process # commands to be executed within container at close of bootstrap process
 +
 +
 +</file>
 +
 +The command to use is:
 +
 +<code bash>
 +$ sudo singularity bootstrap caffe-cpu.img Singularity 
 +</code>
 +
 +Where 
 +  * caffe-cpu.img: the image created before
 +  * Singularity: the bootstrap file
 +
 +This will take some minutes (take a coffee).
 +
 +If all goes well, caffe is installed by success inside the container ''caffe-cpu.img'' in ''/opt/caffee'' folder. 
 +
 +
 +===== Use the container =====
 +
 +You can run caffe, in your host, inside the container:
 +
 +<code bash>
 +$ singularity exec caffe-cpu.img caffe
 +</code>
 +
 +
 +===== Use the build container on the Mesocentre =====
 +
 +Just copy this file to your cluster account (''WORK'' folder) and run singularity as usual.
 +
 +For example for interactive usage:
 +
 +<code bash>
 +$ qlogin -lh_vmem=6G
 +</code>
 +
 +
 +<code bash>
 +$ cd WORK
 +</code>
 +
 +<code bash>
 +$ module load tools/singularity
 +</code>
 +
 +
 +
 +<code bash>
 +$ singularity exec caffe-cpu.img caffe 
 +</code>
 +
 +
 +
 +====== Links ======
 +
 +  * [[caffe|Caffe Optimized for GPU]]
  
  
  
-</cile> 
  • caffe_singularity.1499948024.txt.gz
  • Dernière modification : 2017/07/13 12:13
  • de admin