install nvidia driver on rocky linux
## install nvidia driver dnf install epel-release# sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r) sudo dnf install nvidia-driver nvidia-settings sudo dnf install cuda-driver nvidia-smi ## check (base) [root@localhost ~]# nvidia-smi Mon Mar 14 15:34:06 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | 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 GeF