#amdgpu #libdrm #tui #top #performance-counters

app amdgpu_top

Tool to displays AMDGPU usage. The tool displays information gathered from performance counters (GRBM, GRBM2), sensors, fdinfo, gpu_metrics and AMDGPU driver

2 unstable releases

0.2.0 Aug 26, 2023
0.1.7 May 2, 2023

#64 in Hardware support

Download history 6/week @ 2023-06-04 2/week @ 2023-06-11 7/week @ 2023-06-18 1/week @ 2023-06-25 1/week @ 2023-07-02 13/week @ 2023-07-09 1/week @ 2023-07-16 3/week @ 2023-07-23 3/week @ 2023-07-30 2/week @ 2023-08-06 6/week @ 2023-08-13 17/week @ 2023-08-20 18/week @ 2023-08-27 4/week @ 2023-09-03 10/week @ 2023-09-10 14/week @ 2023-09-17

60 downloads per month

MIT license

1MB
2.5K SLoC

AMDGPU_TOP

amdgpu_top is tool that display AMD GPU utilization, like umr or clbr/radeontop or intel_gpu_top.
The tool displays information gathered from performance counters (GRBM, GRBM2), sensors, fdinfo, and AMDGPU driver.

Simple TUI
(like nvidia-smi, rocm-smi)
TUI GUI
amdgpu_top Simple TUI amdgpu_top TUI amdgpu_top GUI mode

Usage

cargo run -- [options ..]

Option

FLAGS:
   -d, --dump
       Dump AMDGPU info (Specifications, VRAM, PCI, ResizableBAR, VBIOS, Video caps)
   --list
       Display a list of AMDGPU devices (can be combined with "-d" option)
   -J, --json
       Output JSON formatted data
   --gui
       Launch GUI mode
   --smi
       Launch Simple TUI mode (like nvidia-smi, rocm-smi)
   -h, --help
       Print help information

OPTIONS:
   -i <u32>
       Select GPU instance
   --pci <String>
       Specifying PCI path (domain:bus:dev.func)
   -u <u64>, --update-process-index <u64>
       Update interval in seconds of the process index for fdinfo (default: 5s)

Commands for TUI

key
f toggle fdinfo
n toggle Sensors
m toggle GPU Metrics
h change update interval (high = 100ms, low = 1000ms)
q Quit
P sort fdinfo by pid
M sort fdinfo by VRAM usage
G sort fdinfo by GFX usage
M sort fdinfo by MediaEngine usage
R reverse sort

Installation

Packages

Build from source

Dependencies:

  • libdrm2
  • libdrm-amdgpu1
git clone https://github.com/Umio-Yasuno/amdgpu_top
cd amdgpu_top
cargo install --locked --path .

without GUI

cargo install --locked --path . --no-default-features --features="tui"

Used library

TUI

GUI

i18n

Reference

Alternatives

If amdgpu_top is not enough for you or you don't like it, try the following applications.

Dependencies

~0.8–18MB
~247K SLoC