Photo by Gabriel Heinzer on Unsplash
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Linux/Ubuntu
- environment
WSL
Ubuntu 22.04.2 LTS
- resolution
ldconfig -p | grep cuda
export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH
echo "export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH" >> .bashrc