theano

Config Setting

[global]
#device = opencl0:0;opencl0:1
#device = opencl*
device = opencl0:0
floatX = float64
[lib]
cnmem=100

These Flags can be specifed on using an ENVIRONMENT Variable.

export THEANO_FLAGS="mode=FAST_RUN,device=opencl0:1,floatX=float32"

Python Assistance

Before running the python code

export THEANO_FLAGS="exception_verbosity=high"

Checking is Theano is GPU Enabled

This (for once) is quite easy

ipython
import theano

You should see something like this...

DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [2]
param: 4, val: 0
Mapped name None to device opencl0:0: Ellesmere

Double Checking

export DEVICE="opencl0:0"
python -c "import pygpu;pygpu.test()"