I am trying to use Python with Theano to speed up some code with OpenCL. I installed libgpuarray and pygpu according to the instructions (I think) and did not get errors. During installation, the installed OpenCL environment was detected.
I just can't run the Theano example for OpenCL, mainly because I don't know how to specify my GPU. My GPU is Radeon HD 5340/5450/5470 , according to inxi . All the code in Theano documentation uses device=cuda0 and the only place where OpenCL is mentioned is device=openclN , where N is a number.
I tried device=opencl0 and got a pygpu error indicating that the correct format is opencl<int>:<int> . Since then I have tried any number of combinations of numbers ( opencl0:0 and such) and always GpuArrayException: Unknown error .
My system is Ubuntu 14.04 x64, and my hardware is Toshiba Satellite, 15 ". I installed Theano with pip , and later installed libgpuarray according to the instructions on my website.
What am I doing wrong?
python theano opencl
Alejandro Piad Jan 15 '15 at 19:43 2015-01-15 19:43
source share