Querying and benchmarking AMD GPUs

From GamingOnLinux.com Linux Games Wiki
Jump to: navigation, search

Introduction

amdgpu is the kernel driver for modern AMD cards. So far AMD didn't provide open GUI application for Linux for querying or changing GPU paremeters, but you can still get some of that info from various kernel reports.

amdgpu power management info

sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info

Or continuously:

watch -n 1 sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info

You'll see for example:

...
GFX Clocks and Power:
        1750 MHz (MCLK)
        1306 MHz (SCLK)

GPU Temperature: 68 C
GPU Load: 100 %
...

MCLK is video memory clock frequency, and SCLK is shader clock frequency (at which shader GPU cores run).

amdgpu temperature and fan speeds

If you have a decent motherboard, you can configure lm-sensors (make sure that package is installed) to query various information about your hardware.

sudo sensors-detect

Once they are configured, you can query them simply by running:

sensors

Relevant portion might look like:

amdgpu-pci-####
Adapter: PCI adapter
fan1:         703 RPM
temp1:        +39.0°C  ...

Benchmarking applications with radeonsi

TODO: