Skip to main content

A module/TUI for AMD GPU statistics

Project description

amdgpu_stats

A Python module/TUI for AMD GPU statistics

Screenshot of main screen

Tested only on RX6000 series cards; APUs and more may be supported. Please file an issue if finding incompatibility!

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.12.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

amdgpu_stats-0.1.12-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: amdgpu_stats-0.1.12.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.3 Linux/6.2.12-300.fc38.x86_64

File hashes

Hashes for amdgpu_stats-0.1.12.tar.gz
Algorithm Hash digest
SHA256 65bfc3a3a2b5757266a3ff91703f779a73b582885d77bdc668754952a83ed862
MD5 6e835abe04425659e112c74512e89868
BLAKE2b-256 07e1303ed2a07e4f4093c6970e9e2cdaa5dc0e988bdc44478d5678ef98f07e62

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: amdgpu_stats-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.3 Linux/6.2.12-300.fc38.x86_64

File hashes

Hashes for amdgpu_stats-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d65b0b1839e642bbe2de275d3dca42df1699d279bbb8ac75f52885ff3c543a60
MD5 f024dccbd8757500e1664c2e1eee6ddd
BLAKE2b-256 c32e6d407fcbad0cb0d7d55b7396283f9a8bb97023659b2f4d510d1fffa5eb38

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