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; 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:
- ReadTheDocs
help('amdgpu_stats.utils')
in your interpreter- The module source
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for amdgpu_stats-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42b5390edb324049a234eafc57f52947ec0db3f9da1b743446554dc08f253d1a |
|
MD5 | 3b798c0175a7c2b91d9c151ed30cc9eb |
|
BLAKE2b-256 | b95e8bc4dc38cb5499f4b1679cfea31483833afe28cda27dcc67966aeadcf618 |