Just as a preliminary, make sure you’ve got cmake installed (as root) :

### Regular instructions from the Deep Learning site

The standard instructions are :

What isn’t obvious is that (a) the default location (/usr/local/{include,lib}) isn’t much use for Theano without adding a bunch of command-line options, and (b) cmake will require running under optirun in order for it to see the required OpenCL libraries.

If you have mis-steps doing the initial cmake, it helps to clear out the cmake caches using rm CMakeCache.txt.

The key cmake line for building under a bumblebee set-up was :

And finally, install system-wide :

### Building PyGPU

NB: If you’re running in a virtualenv, remember to set ‘env’ before the following!

### Building PyGPU (for developing it)

Apparently, this is just done by repeatedly doing build and install above (there’s no python setup.py develop).

### Building PyGPU - but tests fail (after a while)

Apparently, this is to-be-expected behaviour at the moment…

But at least it highlights the correct name for the GPU device.