-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR (theano.sandbox.gpuarray): Could not initialize pygpu, support disabled #19
Comments
So it seems that the cuda support was built, but that the library can't find any devices. What does nvidia-smi says? |
Hi,
Do you find anything strange? Or it might be that the Driver Version: 304.117 collides with Theano? Looking forward to your hints. |
There are newer drivers, but that version should be fine for CUDA 5.5. Are you able to run examples from the toolkit (like deviceQuery)? |
sorry for the question.....where can I precisely find "deviceQuery"? |
It's one one the example programs that comes with the toolkit. |
thank you very much for your kind patience Where is it usually put? |
Normally the program is sample source code that you have to compile and then run. On my machine it is at But since you are using the ubuntu version of the package (rather than the official NVIDIA one), It might be somewhere else. |
If you can't find deviceQuery try running these commands:
and post the results. |
marco@marco-All-Series:~$ dpkg -L nvidia-cuda-toolkit found it: but no "samples"......... strange isn't? I installed nvidia-cuda-toolkit via sudo apt-get install dpkg -L nvidia-cuda-toolkit |
marco@marco-All-Series: |
Something is wrong with your installation of cuda. I would strongly recommend you remove the ubuntu packages (including the driver) and reinstall using the official NVIDIA pacakges. If you don't want to do that, then I can't really help you because I've never used other packages than those. |
Two days ago I installed Cuda 6.5 Production Release from here: https://developer.nvidia.com/cuda-downloads So I'm in a strange situation: if I install Cuda 6.5 I will probably be affected by the bug, which blocks my PC....but if I install the toolkit via ubuntu, it prevents the gpu to be recognised.... What do you suggest me to do? |
My last usual suspect is the device nodes. Try running |
marco@marco-All-Series:~$ ls -lh /dev/nvidia* do you find something wrong here? |
Well everything seems good. I really have no idea what exactly is broken, but something is. And it isn't in theano or libgpuarray. So I don't really consider this a bug. |
I do really appreciate and thank you for your kind help. |
Tomorrow morning, now here it's 11.30 p.m. and being tired I can do some mistakes, I will remove the ubuntu packages, including the nvidia driver. May I contact you again, in case I have other problems? |
Hi, I asked my friend to make a detailed post on his blog to describe in details problem and solution, in order to spread as much as possible the knowledge about these issues. Kind regards. |
So it seems the problem is sloved. |
Hi @marcoippolito, Do you have that link to a blog post on how to resolve this issue? Do I need to use the official version of cuda from nvidia not from apt-get? Thanks,
|
Strange. I was able to solve this issue by running as root (sudo) and then changing ownership of ~/.theano to my current user. Then afterwards, the issue was fixed. This group message helped me: https://groups.google.com/d/msg/theano-users/xW9jmHzOwp0/8SvMA_R0EAUJ
|
I had a similar experience. In my case the apt-get installation did not load the required modules. I was able to solve the problem by running |
I had the same problem but I got it solved by following the recommendation of @antimora 👍 $ sudo theano-test #it detected gpu
$ chown -R <myusername> ~/.theano
$ theano-test # detected gpu! thanks! |
@abergeron, what do you think of making a check in Theano that the I think it would help people understand more rapidly the problem. What about the problem that when "sudo theano-test", the compiledir end up On Thu, Apr 9, 2015 at 7:43 AM, Flávio Codeço Coelho <
|
Because sudo changes the uid but not the rest of the environnement (especially $HOME) |
Hey @abergeron @marcoippolito , Have you found the final solution? I think I ran into a similar problem, I specified the issue here: #4384 Wish can get some ideas and help Thank you |
It don't seem related to libgpuarray, so I replied in your original issue. On Sun, Apr 17, 2016 at 7:20 AM, Aaron J. Sun notifications@github.com
|
Hi,
in Ubuntu 14.04 with Nvidia GeForce GTX 770, I installed via sudo apt-get http://packages.ubuntu.com/trusty/devel/nvidia-cuda-toolkit (5.5.22-3ubuntu1)
Followed the step-by-step-guide of libgpuarray: http://deeplearning.net/software/libgpuarray/installation.html#requirements
But when testing Theano with cuda, the output is:
marco@marco-All-Series:~/Theano-Testing$ THEANO_FLAGS=device=cuda0 python check1.py
ERROR (theano.sandbox.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/gpuarray/init.py", line 44, in
init_dev(config.device)
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/gpuarray/init.py", line 36, in init_dev
context = pygpu.init(dev)
File "gpuarray.pyx", line 575, in pygpu.gpuarray.init (pygpu/gpuarray.c:7317)
File "gpuarray.pyx", line 546, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:7246)
File "gpuarray.pyx", line 950, in pygpu.gpuarray.GpuContext.cinit (pygpu/gpuarray.c:10820)
GpuArrayException: No CUDA devices avaiable
[Elemwise{exp,no_inplace}(<TensorType(float64, vector)>)]
Looping 1000 times took 3.85683894157 seconds
Result is [ 1.23178032 1.61879341 1.52278065 ..., 2.20771815 2.29967753
1.62323285]
Used the cpu
Any clues to solve the problem?
Looking forward to your kind hints.
Kind regards.
Marco
The text was updated successfully, but these errors were encountered: