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.
Statistics are not logged; only toggling Dark/light mode and the stat names / source files.
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]: print(amdgpu_stats.utils.get_core_stats())
{'sclk': 0, 'mclk': 1000000000, 'voltage': 0.01, 'util_pct': 0}
In [3]: print(amdgpu_stats.utils.get_power_stats())
{'limit': 281, 'average': 35, 'capability': 323, 'default': 281}
In [4]: print(amdgpu_stats.utils.get_temp_stats())
{'edge': 33, 'junction': 36, 'mem': 42}
In [5]: print(amdgpu_stats.utils.get_fan_stats())
{'fan_rpm': 0, 'fan_rpm_target': 0}
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
Hashes for amdgpu_stats-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8da19a0ec18c26aba533be644e24b6fe1a3d08587f8328942c79e75243ba4d6 |
|
MD5 | 791e0b356d2a6ce2f684f96c7edb8319 |
|
BLAKE2b-256 | 457e3de7451d0dbdacfbaa6b81f57d49f60f482f51d712261f95aa87c8e4880a |