CUDA is something that needs to be installed when using NVIDIA GPUs and graphics cards in machine learning, deep learning programming, or gaming. In Python machine learning programming, tensorflow is often used, and to use tensorflow, installation of NVIDIA GPU drivers and corresponding versions of CUDA is required.
CUDA can be installed with the following command. As an example, the following command installs CUDA version 11.0. The version of CUDA to install varies depending on the version of Tensorflow you use. Itโs recommended to research this in advance.
sudo apt update ; sudo apt-get install cuda-11-0
(Reference)