Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install CUDA & cuDNN on WSL2 #10

Open
sko00o opened this issue Aug 17, 2024 · 0 comments
Open

Install CUDA & cuDNN on WSL2 #10

sko00o opened this issue Aug 17, 2024 · 0 comments

Comments

@sko00o
Copy link
Owner

sko00o commented Aug 17, 2024

My Environment

  • Win11 + WSL2 (Ubuntu 22.04 )

CUDA

Follow this official tutorial:

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#wsl

wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb

sudo apt-get update
sudo apt-get install cuda-toolkit

Environment Setup:

sudo cat <<\EOF >  /etc/profile.d/099_cuda.sh
export PATH="$PATH:/usr/local/cuda/bin"
export LD_LIBRARY_PATH=/usr/local/cuda/lib64\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
EOF

cuDNN

Go to https://developer.nvidia.com/cudnn-downloads .

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb

sudo apt-get install libcudnn9-cuda-12
sudo apt-get install libcudnn9-dev-cuda-12

Verify Installation

sudo apt-get install libcudnn9-samples

sudo apt install libfreeimage3 libfreeimage-dev

cd /tmp
cp -r /usr/src/cudnn_samples_v9.
cd cudnn_samples_v9/mnistCUDNN
make
./mnistCUDNN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant