I’m using miniconda + wsl. I have instaled cudnn + cuda toolkit
when I run pytorch project
/home/icy/miniconda3/envs/torch_new/bin/python /home/icy/source/examples/mnist/main.py
/home/icy/miniconda3/envs/torch_new/lib/python3.9/site-packages/torch/lib
True
/usr/local/cuda
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Please make sure libcudnn_cnn_infer.so.8 is in your library path!
Aborted
but in my environment , the so library can be found
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Please make sure libcudnn_cnn_infer.so.8 is in your library path!
The problem is not libcudnn_cnn_infer.so.8 as the second line says, but as mentioned in the first line, libcudnn_cnn_infer.so.8 is trying to open libcuda.so that it cannot find.
On my distribution, I had a libcuda.so.1 but no libcuda.so. So I made a symbolic link from libcuda.so.1 to libcuda.so and it worked.
I’m seeing a similar issue except I wouldn’t be able to use the recommended solution for downgrading to Ubuntu 22.04 since I’m on Debian bookworm. I do have LD_LIBRARY_PATH set to :/home/barry1/miniconda3/envs/tf/lib/ does anyone have any other recommendations?
I had the same problem, none of the solutions here worked, in the end the problem was my shell since i was usign fish, tried every solution in this thread and then i just used bash and it worked