amdgpu-stats-0.1.9
توضیحات
A module/TUI for AMD GPU statistics
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | amdgpu-stats-0.1.9 |
| نام | amdgpu-stats |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Josh Lay |
| ایمیل نویسنده | pypi@jlay.io |
| آدرس صفحه اصلی | https://github.com/joshlay/amdgpu_stats |
| آدرس اینترنتی | https://pypi.org/project/amdgpu-stats/ |
| مجوز | MIT |
# 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](https://amdgpu-stats.readthedocs.io/en/latest/)
- `help('amdgpu_stats.utils')` in your interpreter
- [The module source](https://github.com/joshlay/amdgpu_stats/blob/master/src/amdgpu_stats/utils.py)
Feature requests [are encouraged](https://github.com/joshlay/amdgpu_stats/issues) 😀
## 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](https://wiki.archlinux.org/title/AMDGPU#Boot_parameter) for context.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.16.0 | textual |
| >=10.0 | humanfriendly |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl amdgpu-stats-0.1.9:
pip install amdgpu-stats-0.1.9.whl
نصب پکیج tar.gz amdgpu-stats-0.1.9:
pip install amdgpu-stats-0.1.9.tar.gz