Translations:Tutoriel Apprentissage machine/40/en: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
* Install the modules that you will need. For ''TensorFlow'', install the module <tt>tensorflow_gpu</tt>; it is a version of this software optimized for Compute Canada clusters. | * Install the modules that you will need. For ''TensorFlow'', install the module <tt>tensorflow_gpu</tt>; it is a version of this software optimized for Compute Canada clusters. | ||
* Try to run your program. | * Try to run your program. | ||
* Install any missing modules if necessary. | * Install any missing modules if necessary. (Since the compute nodes don't have internet access, some packages won't be available. In that case, contact us for support.) | ||
* Create a file <tt>requirements.txt</tt> in order to recreate this virtual environment: | * Create a file <tt>requirements.txt</tt> in order to recreate this virtual environment: | ||
(env) $ pip freeze > ~/requirements.txt | (env) $ pip freeze > ~/requirements.txt |
Revision as of 14:37, 8 October 2019
- Create and activate a virtual environment in $SLURM_TMPDIR (this variable points to a directory on the local disk, directly attached to the compute node). Do not use Anaconda. For example:
$ virtualenv --no-download $SLURM_TMPDIR/env
- Install the modules that you will need. For TensorFlow, install the module tensorflow_gpu; it is a version of this software optimized for Compute Canada clusters.
- Try to run your program.
- Install any missing modules if necessary. (Since the compute nodes don't have internet access, some packages won't be available. In that case, contact us for support.)
- Create a file requirements.txt in order to recreate this virtual environment:
(env) $ pip freeze > ~/requirements.txt