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
File details
Details for the file amdgpu_stats-0.1.19.tar.gz
.
File metadata
- Download URL: amdgpu_stats-0.1.19.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.4.4-cb2.0.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68df1743d61e2755bbd39b7ec25f5b1a73a764cd0200fbfceb3a9ef19497dbf6 |
|
MD5 | 7c80e8d32171c28ce75af7e8f6006f47 |
|
BLAKE2b-256 | 9d968576d9b82a92b1b674c20764e12e70ea43e8ec794692e5ec34c3a8e59495 |
Provenance
File details
Details for the file amdgpu_stats-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: amdgpu_stats-0.1.19-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.4.4-cb2.0.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d4ffd3fe9bd9c97e4cfc84b6d48f9b648b4de35bba9281d277da99a3504a48 |
|
MD5 | 2680e15491990bcb0d99146af5197f42 |
|
BLAKE2b-256 | d9f37288e4cdc3cf47ffbe72e340d12079b8e6b99cfb59359485c25125bb4b73 |