When I try to run a PyTorch program, it fails:
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directoryPlease make sure libcudnn_cnn_infer.so.8 is in your library path!Aborted
When I did apt-get
for the cuda packages, and it was in a different directory than the library path. I copied the file and tried to paste it in the library path: /usr/lib/wsl/lib
.
Turned out, the folder was read-only, and no matter what I did (e.g. chmod
), it stayed that way. How should I edit the library path if the path is read-only?
***If I am missing any info, please ask