A simple module/TUI (using Textual) that provides AMD GPU statistics
Project description
amdgpu_stats
A simple Python module/TUI (using Textual) that shows AMD GPU statistics
The GPU and temperature nodes (edge
/junction
/etc.) are discovered automatically.
Please see the module section or the docs for information on usage as an import
in other tooling
Tested only on RX6000
series cards; APUs and more may be supported. Please file an issue if finding incompatibility!
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.
Installation / Usage
pip install amdgpu-stats
Once installed, run amdgpu-stats
in your terminal of choice
Module
Rudimentary support as a module exists; functions / variables offered can be found in amdgpu_stats.utils
Demonstration:
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('card0', 'core', format_freq=True)
Out[4]: '659 MHz'
Feature requests are encouraged :)
Documentation
For more information on the module, see:
help('amdgpu_stats.utils')
in your interpreter- ReadTheDocs
- the module source for more info
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
File details
Details for the file amdgpu_stats-0.1.9.tar.gz
.
File metadata
- Download URL: amdgpu_stats-0.1.9.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.3 Linux/6.2.12-cb1.0.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 297b1d3ea229cd7dae260cfc87d4e027decc4b26c57ae99f838c0e84d310aac8 |
|
MD5 | 80d381f60342e34560084c8ff49efc59 |
|
BLAKE2b-256 | 9ff4e27175fd77494c3165056152232c389c88abedd5192b50b1426e5c1f004b |
Provenance
File details
Details for the file amdgpu_stats-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: amdgpu_stats-0.1.9-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-cb1.0.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d87025f2c3f8533b8371d611efb44c64f7d8ffd9c1e0280c9ead08c9f948fe0 |
|
MD5 | 072eabc131a6565d05a02cc02734ed69 |
|
BLAKE2b-256 | 881bead82909424ed3232adb2d82044ef14c3c9d6fd4055907235d4c34da19ae |