Check for GPU on CentOS Linux

Memo

Try lshw or lspci. They have to be installed if you don’t have already.

Install lshw

sudo yum install lshw //CentOS
sudo apt-get install lshw // Ubuntu

Then run this

sudo lshw -C display

The output would look like this

 *-display
       description: VGA compatible controller
       product: GP102 [GeForce GTX 1080 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: [email protected]:0b:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:95 memory:fb000000-fbffffff memory:e0000000-efffffff memory:de000000-dfffffff ioport:5000(size=128) memory:faf00000-faf7ffff

Similarly, you can try lspci

lspci | grep VGA

The output would look like this

0b:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)