79178773

Date: 2024-11-11 18:37:27
Score: 1.5
Natty:
Report link

For me, using Windows 11 + WSL, i had to do the following steps:

First I visited NVIDIA's website to download CuDNN for Ubuntu ( https://developer.nvidia.com/rdp/cudnn-archive ). After logging in, my browser automatically started downloading it, but i had the option to copy the full download link from the download that was in progress. It was quite long.

Then, on my Ubuntu terminal (WSL) I typed the following to download the deb package in there (please replace the long link with whatever you copied on the step above):

wget -O cudnn-local-repo.deb "https://developer.download.nvidia.com/compute/cudnn/secure/8.9.7/local_installers/12.x/cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb?Wr2dTCzXY1M3FuHmuQIxUK9phLLYKkG8BCndRJ4TPwJPO3R_E9SAiojXcPKK7ivtaPbHXj49L1MqhjqfQKyuZF7B33dx5y8XDUz96_EPovRBytbRIwyNgSsNzQNxHoTeUQXrMcCGkogKQ8yADLABUQb4eIoO0HcuSDrKwbdKJvDHVJ-NboNM3kr9DGkQkUlGJ82oyQEM2vO_b51L7LN91DboWEo=&t=eyJscyI6IndlYnNpdGUiLCJsc2QiOiJkZXZlbG9wZXIubnZpZGlhLmNvbS9yZHAvY3Vkbm4tYXJjaGl2ZSJ9"

After the download was finished, I installed CuDNN like this:

sudo dpkg -i cudnn.deb

The command failed telling me to copy the certificates to a certain path before proceeding: sudo cp /var/cudnn-local-repo-/cudnn-local--keyring.gpg /usr/share/keyrings/

Then i retried:

sudo dpkg -i cudnn.deb sudo apt-get update sudo apt-get install libcudnn8 sudo apt-get install libcudnn8-dev

Now I need to copy one of the installed files inside the specific python that's being used with pyenv. I didn't know where it was so I used this command to find it:

sudo find / -name "libnvrtc*"

I learned that the file I needed was: ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2

I needed a file called libnvrtc.so only, not libnvrtc.so.11.2, so i created a symbolic link:

ln -s ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2 libnvrtc.so

After that, when I tried the program I wanted again, the warning "Applied workaround for CuDNN issue, install nvrtc.so" was gone.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thiago Garcia