Skip to content

Theano, CUDA and Ubuntu tutorial

Michał Dobrzański edited this page Sep 25, 2016 · 2 revisions

I am running in Ubuntu 16.04 with CUDA 7.5.


The tutorial is here. However, it was not useful for my case: http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu


The following instructions below did the job:

  1. install theano: sudo python3.5 -m pip install Theano

  2. download and install the latest cuda: https://developer.nvidia.com/cuda-downloads

I had some issues with that, so I followed this idea (better option is to download the 1,1GB package as .run file):

http://askubuntu.com/questions/760242/how-can-i-force-16-04-to-add-a-repository-even-if-it-isnt-considered-secure-eno

You may also want to grab the proper NVidia driver, choose it form there:

System Settings > Software & Updates > Additional Drivers.

  1. This should work, run it with: THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python3.5 test.py http://deeplearning.net/software/theano/tutorial/using_gpu.html

  2. Optionally, you can add cuDNN support from: https://developer.nvidia.com/cudnn

Clone this wiki locally