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 GeForce ... Off | 00000000:23:00.0 Off | N/A |
| 50% 43C P0 N/A / 75W | 827MiB / 2048MiB | 43% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 42634 C ...vs/tracker-gpu/bin/python 825MiB |
+-----------------------------------------------------------------------------+
(base) [root@localhost ~]#
댓글
댓글 쓰기