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
tensorflow [2018/06/15 11:33] – [GPU version] admintensorflow [2019/01/29 14:34] (Version actuelle) – admin
Ligne 1: Ligne 1:
 ====== TensorFlow ====== ====== TensorFlow ======
 +<note warning>This documentation is for using tensorflow 1.4.1 and singularity 1.6.1 on K40 GPU node</note>
  
 TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them. TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them.
Ligne 9: Ligne 9:
  
 TensorFlow **1.x** is available within [[singularity| Singularity container]] TensorFlow **1.x** is available within [[singularity| Singularity container]]
 +
 +====== How to install custom python package  ======
 +Singularity images are read only. But on can install custom python package outside the container. The packages will be installed in the HOME directory. 
 +
 +Say we want to install ''panda'' package for example. 
 +
 +We use ''mesoshared'' because the HOME directory is mounted in RW.
 +
 +Load singularity
 +<code bash>
 +$ export LC_ALL=C
 +$ module load tools/singularity
 +</code>
 +Install 
 +<code bash>
 +$ singularity exec /Softs/lumiere/tools/singularity/spool/tensorflow-gpu.img  pip install --user panda
 +</code>
 +Check installation
 +<code bash>
 +$ singularity exec /Softs/lumiere/tools/singularity/spool/tensorflow-gpu.img python  singularity exec /Softs/lumiere/tools/singularity/spool/tensorflow-gpu.img  python                  
 +Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
 +[GCC 5.4.0 20160609] on linux2
 +Type "help", "copyright", "credits" or "license" for more information.
 +>>> import panda as pd
 +
 +</code>
 +
 +
  
 ===== GPU version ===== ===== GPU version =====
Ligne 40: Ligne 68:
 </code>   </code>  
  
 +<note warning>Tensorflow GPU requires a lot of memory, you must ask h_vmem=48G as a minimum</note>
  
  
  • tensorflow.1529062418.txt.gz
  • Dernière modification : 2018/06/15 11:33
  • de admin