Install Cuda11.3 on Ubuntu20.04
Driver installation under Linux
# 以下命令按顺序执行
sudo apt update && sudo apt upgrade -y
# or sudo apt update
# 查看显卡信息
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
# or sudo apt install nvidia-driver-510
reboot
nvidia-smi
After the driver is installed, nvidia-smi
the command is available and the graphics card information will be output.
After reinstalling countless times, only through
sudo ubuntu-drivers autoinstall
# or sudo apt install nvidia-driver-510
This way of installation, manual installation is not easy to use
Install the driver first, then install cuda, print nvidia-smi first, and then consider nvcc -V
In this way, the driver installation of the graphics card does not need to manually prohibit the use
禁用nouveau驱动
andBios禁用secure boot
Install CUDA and CUDNN