Closed PPeiMi closed 8 years ago
If you don't want to update your CUDA then you'll have to stick with cuDNN v4; if you want to do that then you can install the cuDNN v4 Torch bindings like this:
luarocks install https://raw.githubusercontent.com/soumith/cudnn.torch/R4/cudnn-scm-1.rockspec
Hi @jcjohnson , I installed cuDNN v4, but there is still the same error. Is there anything I must do?
Installing cuDNN requires two steps:
(1) Download the cuDNN v4 library from the NVIDIA website and copy the libraries to /usr/local/cuda/lib64
(2) Run the luarocks command above to install the Torch bindings for cuDNN v4.
I suspect maybe you did step (2) but not step (1)?
@jcjohnson thank you. I follow the guide here (Step 6: Install cuDNN): neural-style Installation, but still have this error. The only change as I know is that, I installed torch in my own home path, not the system path. Does that matter?
That guide is a little outdated (I need to update it) - the line
luarocks install cudnn
will install the Torch bindings for cuDNN v5, which won't work if you want to use cuDNN v4. Instead you need to do:
luarocks install https://raw.githubusercontent.com/soumith/cudnn.torch/R4/cudnn-scm-1.rockspec
If you are still seeing the error after this, then try
``bash ls /usr/local/cuda/lib64/cudnn
You should see a file named libcudnn.so.4.
My libcudnn.so.4
is in /usr/local/cuda/lib64
.
I solved this by:
cd /usr/local/cuda/lib64;export LD_LIBRARY_PATH=
pwd:$LD_LIBRARY_PATH
Thank you! :)
As I'm following the Installation guide, and going to train with GPU after install cuDNN. But there are some bugs:
It says the version of cuDNN needs to be version 5. In the CUDA website, the cuDNN v5 according to CUDA 7.5, however, my CUDA version is only 7.0. Do I have to update my CUDA, or is there any method that can fix this problem?