Member-only story

CUDA and cuDNN on UBUNTU 20.04

Imran Khan Bangash
2 min readAug 27, 2023

--

CUDA and cuDNN are technologies that help computers run faster on GPUs. CUDA lets developers use GPUs for different kinds of computing. cuDNN is a library that helps deep learning frameworks use GPUs for neural networks. cuDNN makes common operations like convolution and pooling faster on GPUs. Here we will list the steps to install these two frameworks.

CUDA Library

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pinsudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda-repo-ubuntu2004-11-2-local_11.2.0-460.27.04-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-2-local_11.2.0-460.27.04-1_amd64.debsudo apt-key add /var/cuda-repo-ubuntu2004-11-2-local/7fa2af80.pubsudo apt-get update
sudo apt-get -y install cuda
dpkg -l | grep cuda-toolkit
whereis cuda

--

--

Imran Khan Bangash
Imran Khan Bangash

Written by Imran Khan Bangash

Imran is a computer vision and AI enthusiast with a PhD in computer vision. Imran loves to share his experience with self-improvement and technology.

No responses yet