Could not load library libcudnn_cnn_infer.so.8. #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error runing the script using WLS Ubuntu 22.04
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Fixed using the following, found on https://github.com/pytorch/pytorch/issues/85773:
I try to fix symbolic link problem and solve it.
sudo ldconfig
/usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
Firstly,
cd /usr/lib/wsl/lib/
backup "libcuda.so.1" and "libcuda.so",
and
rm -r libcuda.so.1
rm -r libcuda.so
Then,
ln -s libcuda.so.1.1 libcuda.so.1
ln -s libcuda.so.1.1 libcuda.so
sudo ldconfig
done.
Now works fine.