Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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] admin | caffe_singularity [2017/07/13 18:00] (Version actuelle) – [Install or (bootsrap) the container the image] admin | ||
|---|---|---|---|
| Ligne 89: | Ligne 89: | ||
| echo " | echo " | ||
| + | ln -s / | ||
| %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 | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | The command to use is: | ||
| + | |||
| + | <code bash> | ||
| + | $ sudo singularity bootstrap caffe-cpu.img Singularity | ||
| + | </ | ||
| + | |||
| + | Where | ||
| + | * caffe-cpu.img: | ||
| + | * Singularity: | ||
| + | |||
| + | This will take some minutes (take a coffee). | ||
| + | |||
| + | If all goes well, caffe is installed by success inside the container '' | ||
| + | |||
| + | |||
| + | ===== Use the container ===== | ||
| + | |||
| + | You can run caffe, in your host, inside the container: | ||
| + | |||
| + | <code bash> | ||
| + | $ singularity exec caffe-cpu.img caffe | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Use the build container on the Mesocentre ===== | ||
| + | |||
| + | Just copy this file to your cluster account ('' | ||
| + | |||
| + | For example for interactive usage: | ||
| + | |||
| + | <code bash> | ||
| + | $ qlogin -lh_vmem=6G | ||
| + | </ | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | $ cd WORK | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | $ module load tools/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | <code bash> | ||
| + | $ singularity exec caffe-cpu.img caffe | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ====== Links ====== | ||
| + | |||
| + | * [[caffe|Caffe Optimized for GPU]] | ||
| - | </ | ||