Libcudnn_cnn_infer.so.8 library can not found

Hi, I also faced the same problem on WSL2.

As discussed in this issue it is just a matter to add this in the .bashrc:

export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH

Be sure that your library is in /usr/lib/wsl/lib, to see it you can run

ldconfig -p | grep cuda
16 Likes