CuDNN is CUDA Deep Neural Network. It is a GPU-accelerated library for deep neural networks. CuDNN provides highly tuned functions that arise frequently in deep neural network applications.
CUDA and cuDNN are required for TensorFlow to be able to use the NVIDIA GPU to accelerate the AI/ML codes.
In this article, we will show you how to install NVIDIA CUDA and cuDNN on Kali Linux.
Topic of Contents:
- Installing the NVIDIA GPU Drivers on Kali Linux
- Updating the APT Package Database Cache on Kali Linux
- Installing NVIDIA CUDA on Kali Linux
- Installing NVIDIA cuDNN on Kali Linux
- Conclusion
Installing the NVIDIA GPU Drivers on Kali Linux
Before you install CUDA and cuDNN on Kali Linux, you must install the NVIDIA GPU drivers on Kali Linux. If you need any assistance in installing the NVIDIA GPU drivers on Kali Linux, read this article.
Updating the APT Package Database Cache on Kali Linux
To update the APT package database cache on Kali Linux, run the following command:
Installing NVIDIA CUDA on Kali Linux
To install NVIDIA CUDA on Kali Linux, run the following command:
To confirm the installation, press Y and then press <Enter>.
CUDA and the required dependency packages are being downloaded from the Kali Linux package repositories. It takes a while to complete.
CUDA and the required dependency packages are being installed. It takes a while to complete.
At this point, CUDA should be installed on Kali Linux.
As you can see, CUDA 11.8 is installed on Kali Linux.
Installing NVIDIA cuDNN on Kali Linux
To install NVIDIA cuDNN on Kali Linux, run the following command:
Once you see the following window, press <Enter>.
Select “I Agree” and click on “OK”.
NVIDIA cuDNN is being installed on Kali Linux. It takes a while to complete.
The NVIDIA cuDNN libraries are being downloaded from the official website of NVIDIA. It takes a while to complete.
The NVIDIA cuDNN libraries are being installed on Kali Linux. It takes a while to complete.
At this point, NVIDIA cuDNN should be installed.
Conclusion
We showed you how to install NVIDIA CUDA on Kali Linux. We also showed you how to install NVIDIA cuDNN on Kali Linux.