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
Unable to use GPU with Theano #8
Comments
You probably have something else running on your GPU, which is causing Theano to not be able to allocate enough memory. You shouldn't get this error if you kill all processes using GPU. Alternatively, you can edit The |
OK, I just deleted the part [lib] in the theano config file to make it work. Thanks for the really quick answer. |
Hi, |
@mahdaneh I'm not too sure about this, but this is my speculation: |
Thanks for your suggestion. I found why I get this error since the GPU has not enough memory to run several Theano processes concurrently! Checking nvidia-smi is good to assess whether the GPU has enough memory to run another Theano process or not. Another important thing is that the users should set the cnmem to a small number if they wish to run concurrently several processes on GPU, otherwise, one Theano or Tensorflow process can take all GPU memory by default and does not let other processes start their run. |
I built your docker for gpu with the provided info in the README. Then when I use the command to launch the docker, it runs fine.
In a new notebook, I simply type
import theano
and I get the following error :What am I doing wrong ?
I then tested the cpu version, theano and Keras are working just fine.
The text was updated successfully, but these errors were encountered: