NVIDIA : Install Graphic Driver2022/07/07 |
If your Computer has NVIDIA Graphic cards, Install NVIDIA Graphic Driver to improve Graphics related performance.
|
|
[1] |
If you are using Desktop Environment, change to CUI login, refer to here.
It's OK to fall back to GUI login after finishing setting up Graphic Driver. |
[2] | Install required packages. |
# enable EPEL to install dkms
[root@dlp ~]#
dnf --enablerepo=epel -y install kernel-devel-$(uname -r) kernel-headers-$(uname -r) dkms # setup NVIDIA official repository [root@dlp ~]# dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo Adding repo from: http://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo |
[3] |
Before installing, make sure the Driver Version for your Graphic Card on NVIDIA official site below. ⇒ https://www.nvidia.com/Download/index.aspx?lang=en |
# confirm the cards on your computer [root@dlp ~]# lspci | grep VGA 05:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1) # display the version of available drivers on th repository [root@dlp ~]# dnf module list nvidia-driver cuda-rhel9-x86_64 Name Stream Profiles Summary nvidia-driver latest default [d], fm, ks, src Nvidia driver for latest branch nvidia-driver latest-dkms [d] default [d], fm, ks Nvidia driver for latest-dkms branch nvidia-driver open-dkms default [d], fm, ks, src Nvidia driver for open-dkms branch nvidia-driver 515 default [d], fm, ks, src Nvidia driver for 515 branch nvidia-driver 515-dkms default [d], fm, ks Nvidia driver for 515-dkms branch nvidia-driver 515-open default [d], fm, ks, src Nvidia driver for 515-open branch Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # for example, install the latest version [root@dlp ~]# dnf module -y install nvidia-driver:latest-dkms
# load [nvidia] driver [root@dlp ~]# nvidia-modprobe && nvidia-modprobe -u
# restart if [nouveau] driver is loaded [root@dlp ~]# reboot
# verify installation to show Graphic cards status [root@dlp ~]# nvidia-smi Thu Jul 7 09:35:57 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:05:00.0 Off | N/A | | 0% 54C P0 26W / 120W | 0MiB / 6144MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ |
Sponsored Link |
|