CentOS Stream 8
Sponsored Link

Install NVIDIA Graphic Driver2021/04/13

 
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/rhel8/x86_64/cuda-rhel8.repo

Adding repo from: http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.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 GP104 [GeForce GTX 1070] (rev a1)
# display the version of available drivers on th repository

[root@dlp ~]#
dnf module list nvidia-driver

cuda-rhel8-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 418             default [d], fm, ks, src Nvidia driver for 418 branch
nvidia-driver 418-dkms        default [d], fm, ks      Nvidia driver for 418-dkms branch
nvidia-driver 440             default [d], fm, ks, src Nvidia driver for 440 branch
nvidia-driver 440-dkms        default [d], fm, ks      Nvidia driver for 440-dkms branch
nvidia-driver 450             default [d], fm, ks, src Nvidia driver for 450 branch
nvidia-driver 450-dkms        default [d], fm, ks      Nvidia driver for 450-dkms branch
nvidia-driver 455             default [d], fm, ks, src Nvidia driver for 455 branch
nvidia-driver 455-dkms        default [d], fm, ks      Nvidia driver for 455-dkms branch
nvidia-driver 460             default [d], fm, ks, src Nvidia driver for 460 branch
nvidia-driver 460-dkms        default [d], fm, ks      Nvidia driver for 460-dkms 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

Mon Apr 12 22:43:14 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| 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  GeForce GTX 1070    Off  | 00000000:05:00.0 Off |                  N/A |
| 27%   35C    P0    37W / 180W |      0MiB /  8119MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
Matched Content