Could not load library libcudnn_cnn_infer.so.8. #1

Closed
opened 2023-11-09 13:02:08 +00:00 by aloma · 0 comments

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.

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.
xaloc closed this issue 2023-11-09 15:34:12 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xaloc/podcastFilter#1
No description provided.