Rocky Linux 8 Environment Configuration
1. Check GPU Device Recognition
# yum install pciutils
# sudo lspci | grep NVIDIA
3D controller: NVIDIA Corporation GV100GL [Tesla V100S PCIe 32GB] (rev a1) indicates that it is recognized as V100S
2. Add Nvidia Driver to Software Package Manager List
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
3. Install NVIDIA Driver and Configuration
sudo dnf install nvidia-driver nvidia-settings
4. Install CUDA
sudo dnf install cuda-driver
5. Restart the System and Verify
After restarting the operating system, use the “nvidia-smi” command to check whether the graphics card is working properly.
[root@10-13-47-75 ~]# nvidia-smi
Thu Apr 6 17:10:52 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| 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 Tesla V100S-PCIE-32GB Off| 00000000:00:03.0 Off | 0 |
| N/A 26C P0 35W / 250W| 0MiB / 32768MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+