What is Theano?

Theano is a Python package which allows user to work with multi-dimensional array and mathematical expressions.  The development of Theano has since been taken over by the PyMC developers and it was renamed to Aesara.

Using Theano

To use Theano on HPC2015, please load the module (CPU flavour/GPU flavour):

System Mode Command
HPC2015 CPU module load theano/cpu
GPU module load theano/gpu

There are different calling commands for Python and Anaconda Python.

Running Theano in Python with GPU

  1. Select which python version to be used. You can get the supported version by command: module avail python
  2. Says that latest python version is selected, set up the required environment by: module load python theano/gpu
  3. Run the theano python program by : python test_theano.py

Running Theano in Anaconda Python with GPU

  1. Select which anaconda python version to be used. You can get the supported version by command: module avail anaconda
  2. Says that latest anaconda python version is selected, set up the required environment by: module load anaconda theano/gpu
  3. Check the requried cuda and cudnn version by:
    $ source activate tensorflow-gpu
    $ conda list | egrep 'cudnn|theano'
    cudnn         7.1.3        cuda8.0_0
    theano        1.0.2        py35_0      conda-forge
    

    This example shows that cuda v8.0 and cudnn v7.1.3 are used. Thus you should update the environment accordingly:

    module load cudnn/7.1.3-cuda8.0

    If the required cudnn+cuda version is not available in the cluster system(You can check by command: module avail cudnn), please contact the system adminiatrator.

  4. Run the theano python program by : python test_theano.py

Example submission script and Python files are located at /share1/python/sample/theano/

Additional Information