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 | ||
| tensorflow [2017/04/18 12:43] – [GPU version] admin | tensorflow [2019/01/29 14:34] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== TensorFlow ====== | ====== TensorFlow ====== | ||
| + | <note warning> | ||
| 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 8: | Ligne 8: | ||
| ====== How to use Tensorflow ====== | ====== How to use Tensorflow ====== | ||
| - | TensorFlow **1.x** is available within Singularity container. | + | TensorFlow **1.x** is available within |
| + | |||
| + | ====== 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 '' | ||
| + | |||
| + | We use '' | ||
| + | |||
| + | Load singularity | ||
| + | <code bash> | ||
| + | $ export LC_ALL=C | ||
| + | $ module load tools/ | ||
| + | </ | ||
| + | Install | ||
| + | <code bash> | ||
| + | $ singularity exec / | ||
| + | </ | ||
| + | Check installation | ||
| + | <code bash> | ||
| + | $ singularity exec / | ||
| + | Python 2.7.12 (default, Dec 4 2017, 14:50:18) | ||
| + | [GCC 5.4.0 20160609] on linux2 | ||
| + | Type " | ||
| + | >>> | ||
| + | |||
| + | </ | ||
| + | |||
| ===== GPU version ===== | ===== GPU version ===== | ||
| Ligne 24: | Ligne 52: | ||
| #$ -N job_tensorflow | #$ -N job_tensorflow | ||
| - | i#$ -q tesla.q | + | #$ -q tesla.q |
| - | #$ -l h_vmem=4G ## we request 4G | + | #$ -l h_vmem=48G ## tensorflow GPU requires lot of memory |
| Ligne 35: | Ligne 63: | ||
| ## run TF with singularity | ## run TF with singularity | ||
| - | singularity exec $SING_SPOOL/ | + | singularity exec --nv $SING_SPOOL/ |
| </ | </ | ||
| + | <note warning> | ||
| Ligne 56: | Ligne 85: | ||
| #$ -N job_tensorflowCPU | #$ -N job_tensorflowCPU | ||
| - | i#$ -q all.q ## we request all.q | + | #$ -q all.q ## we request all.q |
| #$ -l h_vmem=4G | #$ -l h_vmem=4G | ||