Get GPU Info – How to Retrieve GPU Information via Command-Line

command linegpugraphics

I'm looking for a command that would give me the same info as:

cat /proc/cpuinfo 

Except for the GPU (type of the chip and memory, frequency).

Best Answer

That type of information is non-standard, and the tools you will use to gather it vary widely.

The command glxinfo will give you all available OpenGL information for the graphics processor, including its vendor name, if the drivers are correctly installed.

To get clock speed information, there is no standard tool.

  • For ATI/AMD GPUs running the old Catalyst driver, aticonfig --odgc should fetch the clock rates, and aticonfig --odgt should fetch the temperature data. I'm not familiar with AMDGPU-Pro, but a similar tool should exist.
  • For NVIDIA GPUs, the nvidia-smi tool will show all of the information you could want, including clock speeds and usage statistics.

I am not aware of an equivalent tool for the open source drivers or for Intel or other GPUs, but other information on the hardware can be fetched from the lspci and lshw tools.

Related Question