Skip to main content

A module/TUI for AMD GPU statistics

Project description

amdgpu_stats

A Python module/TUI for AMD GPU statistics. Tested only on RX6000 series cards and (less so) with Ryzen CPU iGPUs.

Please file an issue if finding incompatibility!

Screenshots

Main screen / stats

Screenshot of the main stats table

Usage graphs

Screenshot of the 'graphing' scroll bars

Logs

Screenshot of the 'Logs' tab pane

Installation

pip install amdgpu-stats

To use the TUI, run amdgpu-stats in your terminal of choice. For the module, see below!

Module

Introduction:

In [1]: import amdgpu_stats.utils

In [2]: amdgpu_stats.utils.AMDGPU_CARDS
Out[2]: {'card0': '/sys/class/drm/card0/device/hwmon/hwmon9'}

In [3]: amdgpu_stats.utils.get_core_stats('card0')
Out[3]: {'sclk': 640000000, 'mclk': 1000000000, 'voltage': 0.79, 'util_pct': 65}

In [4]: amdgpu_stats.utils.get_clock('core', format_freq=True)
Out[4]: '659 MHz' 

For more information on what the module provides, please see:

Feature requests are encouraged 😀

Requirements

Only Linux is supported. Information is completely sourced from interfaces in sysfs.

It may be necessary to update the amdgpu.ppfeaturemask parameter to enable metrics.

This is assumed present for control over the elements being monitored. Untested without.

See this Arch Wiki entry for context.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amdgpu_stats-0.1.21.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

amdgpu_stats-0.1.21-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file amdgpu_stats-0.1.21.tar.gz.

File metadata

  • Download URL: amdgpu_stats-0.1.21.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64

File hashes

Hashes for amdgpu_stats-0.1.21.tar.gz
Algorithm Hash digest
SHA256 204a3c87f0b724b1a82397628af3a2798fd94920497e0afdd565bc1acee66f7a
MD5 ba989cad71039c33d76296e45867e9cb
BLAKE2b-256 15802a5bd8b578a514e9d76f5deffa8a2d0f9d19577fb477c248cb135d66c89c

See more details on using hashes here.

Provenance

File details

Details for the file amdgpu_stats-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: amdgpu_stats-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64

File hashes

Hashes for amdgpu_stats-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 d86f904e79d971f682f6542da122d3107bd067f851311aa10a317af0b5d3b2ab
MD5 ae27177a137e3724f738ec9845045659
BLAKE2b-256 f394ed441a4440dae5101bac5a5317fa36da11e4199243f9e1d7b88c14c1d2db

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page