How to check GPU on CentOS Linux

It is assumed that on Linux, the GPU will find the lspci | grep VGA lspci | grep VGA . It works fine on Ubuntu, but when I try to use it on CentOS, it says that the lspci command was not found. How to check GPU card on CentOS. And note that I am not a machine administrator, and I only use it remotely from the command line. I intend to use the GPU as the GPGPU on this machine, but first I need to check if it even has one.

+7
c linux x86-64 gpu gpgpu
Apr 25 '12 at 6:12
source share
4 answers

Have you tried running /sbin/lspci or /usr/sbin/lspci ?

+11
Apr 25 '12 at 7:15
source share

You are supposed to have proprietary drivers installed, but run the following command ...

 nvidia-smi 

The result should look something like this:

 Mon Dec 23 10:50:28 2013 +------------------------------------------------------+ | NVIDIA-SMI 331.20 Driver Version: 331.20 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 660 Off | 0000:01:00.0 N/A | N/A | | 10% 38C N/AN/A / N/A | 97MiB / 2047MiB | N/A Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Compute processes: GPU Memory | | GPU PID Process name Usage | |=============================================================================| | 0 Not Supported | +-----------------------------------------------------------------------------+ 
+14
Dec 23 '13 at 15:54
source share

lspci must be in the pciutils package.

you can do this with dmidecode, but since you are not an administrator, you probably cannot do this, or you will not install the pciutils package.

IF there is Xorg in this system, then this should be easy:

 grep Graphics /var/log/Xorg.0.log 
+2
Apr 25 2018-12-12T00:
source share

Well, if you use CUDA, it has a function for listing CUDA-compatible devices in the system. Why not use this?

+1
Apr 25 '12 at 7:05
source share



All Articles