cudnn.torch icon indicating copy to clipboard operation
cudnn.torch copied to clipboard

accurately finding correct .so version when multiple versions are installed

Open soumith opened this issue 10 years ago • 7 comments

soumith avatar Dec 10 '15 20:12 soumith

@Alexey-Kamenev if you have multiple versions installed, I'd say check libcudnn.so and which version it is linked to.

soumith avatar Dec 10 '15 20:12 soumith

Currently I have this:

alexeyk@gcrgpu1071:$ ll /usr/local/cuda-7.0/lib64/libcudn* lrwxrwxrwx 1 alexeyk alexeyk 15 Aug 21 09:45 /usr/local/cuda-7.0/lib64/libcudnn.so -> libcudnn.so.7.0 lrwxrwxrwx 1 alexeyk alexeyk 18 Aug 21 09:45 /usr/local/cuda-7.0/lib64/libcudnn.so.7.0 -> libcudnn.so.7.0.64 -rwxr-xr-x 1 alexeyk alexeyk 46M Aug 21 09:45 /usr/local/cuda-7.0/lib64/libcudnn.so.7.0.64 -rw-r--r-- 1 alexeyk alexeyk 46M Aug 21 09:45 /usr/local/cuda-7.0/lib64/libcudnn_static.a

So it uses v3.

Not sure if my LD_LIBRARY_PATH is somehow messed up...

Alexey-Kamenev avatar Dec 10 '15 20:12 Alexey-Kamenev

Your installation is just old - please update the package from Nvidia repo:

bfomitchev@borisf-desktop:~/git/caffe$ sudo dpkg -L libcudnn4 /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libcudnn.so.4.0.3 /usr/share /usr/share/doc /usr/share/doc/libcudnn4 /usr/share/doc/libcudnn4/copyright /usr/share/doc/libcudnn4/changelog.gz /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/libcudnn4 /usr/lib/x86_64-linux-gnu/libcudnn.so.4

borisfom avatar Dec 10 '15 21:12 borisfom

To find which libcudnn your particular Torch installation uses, look at cudnn/ffi.lua, it should have a line like : local libnames = {'libcudnn.so.4', 'libcudnn.4.dylib'}

borisfom avatar Dec 10 '15 21:12 borisfom

@borisfom no, R4 has not become the default yet, as it is still an RC* release. Alexey has cudnn R3 installed correctly, and the bindings for it as well.

soumith avatar Dec 10 '15 22:12 soumith

@Alexey-Kamenev I dont really know what to suggest here. The same version of cudnn, and same set of bindings, seem to work for me

soumith avatar Dec 10 '15 22:12 soumith

Alexey, could you double-check the LD_LIBRARY_PATH. Also, can you add a:

print(cudnn.version)

and see if the current version is being loaded.

soumith avatar Dec 10 '15 22:12 soumith