Theano: Cannot find cudnn lib

Created on 26 Dec 2016  路  6Comments  路  Source: Theano/Theano

Hi
For some reason, I'm getting an error 'Could not find cudnn library (looked for v5[.1])'.
The code raising the error is in dnn.py (line 67) for some reason ctypes.util.find_library('cudnn') returns None. the path to the cudnn lib files is located in LD_LIBRARY_PATH

appreciate your help

Most helpful comment

I've figured out the problem, I had to add "LIBRARY_PATH=/usr/local/cuda/lib64" to the environment variables

All 6 comments

I've figured out the problem, I had to add "LIBRARY_PATH=/usr/local/cuda/lib64" to the environment variables

After almost a day lost this was the issue for me as well.

In my case I could only use the gpu if run as roo, even if it said it could not find cudnn. For the regular users there was a problem with gpuarray, and it always fell back to the cpu backend.

This fixed the message when root, and fixed the gpu for the regular users.

Maybe it should be added to the installation instructions after the LD_LIBRARY_PATH part.

Can you give me a link to the page you would include that? Mostly, this is a problem with your installation of cuda, and I'm not sure on which page I would put such note to help user.

I think LIBRARY_PATH is mentioned as well in http://deeplearning.net/software/theano/library/gpuarray/dnn.html.
Are you referring to another page?

Hi, I was following the Theano docs here. It redirects to gpuarray at some point.

I just noticed in the "install as user" section it actually mentions the LIBRARY_PATH var. I just thought maybe it could be mentioned as well in the "System library" section. Obviously I missed it :)

for me to solution was to use cudnn 5.1 instead of 6.0

Was this page helpful?
0 / 5 - 0 ratings