How to find AMD GPU information on Linux

ubuntu
centos7
hardware
amdgpu
vga

#1

I want a command that would print me info about the GPU installed in my laptop or desktop. I know it is an AMD GPU. One can run command to get cpu info:

cat /proc/cpuinfo 

I want the GPU info such as name, memory, chip and frequency of card installed on Linux.


#2

To get the GPU info on Linux, run:

lspci | grep -i vga
lspci | grep -i amd
lspci | grep -i intel
lspci | grep -i nvidia

Another option is to run lshw command:

sudo lshw -C display

Getting amd gpu memory info

Run the following command:

glxinfo | egrep -i 'device|memory'


Above output indicates that I have 4GB GPU memory. See my blog post