neuraltalk2
neuraltalk2 copied to clipboard
cudnn problem
Hi, I successfully installed my nvidia driver and cuda 9.1. I also did everything that is needed to install cudnn 7.1. but when I run th eval.lua ...., I face the following error:
///////////////////////////////////////////////////////////////// 'libcudnn (R7) not found in library path. Please install CuDNN from https://developer.nvidia.com/cuDNN Then make sure files named as libcudnn.so.7 or libcudnn.7.dylib are placed in your library load path (for example /usr/local/lib , or manually add a path to LD_LIBRARY_PATH)
Alternatively, set the path to libcudnn.so.7 or libcudnn.7.dylib to the environment variable CUDNN_PATH and rerun torch. For example: export CUDNN_PATH = "/usr/local/cuda/lib64/libcudnn.so.7" /////////////////////////////////////////////////////////////////
My .bashrc file containes:
///////////////////////////////////////////////////////////////// export PATH=/usr/local/cuda-9.1/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export CUDA_HOME=/usr/local/cuda-9.1 /////////////////////////////////////////////////////////////////
and I'm sure that the libcudnn.so.7 file exists in /usr/local/cuda-9.1/lib64 Any solution ?! :(
System Information: Os: Ubuntu 18.04 Nvidia driver version: 390.48
Today I added this line to .bashrc file:
///////////////////////////////////////////////////////////////// export CUDNN_PATH=/usr/local/cuda-9.1/lib64/libcudnn.so.7 /////////////////////////////////////////////////////////////////
and the error changed to:
///////////////////////////////////////////////////////////////// Found Environment variable CUDNN_PATH = /usr/local/cuda-9.1/lib64/libcudnn.so.7/home/mozhdeh/torch/install/bin/luajit: /home/mozhdeh/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mozhdeh/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mozhdeh/torch/install/share/lua/5.1/cudnn/ffi.lua:1743: /usr/local/cuda-9.1/lib64/libcudnn.so.7: cannot open shared object file: No such file or directory /////////////////////////////////////////////////////////////////
the same problem,Have you sloved it?
Yeah, user the command below: git clone https://github.com/soumith/cudnn.torch.git -b R7 && cd cudnn.torch && luarocks make cudnn-scm-1.rockspec
and it'll be fixed :)