AMD GPU stats
Project description
pyamdgpuinfo
AMD GPU information
Install
pip install pyamdgpuinfo
Only Linux is supported, using the AMDGPU driver.
The library is written using Cython, meaning that Cython and and a C compiler are needed to build and install from source. Additionally, libdrm development headers are required.
Precompiled wheels for Python 3.8-3.12 are the default method of install. This means that you don't need Cython or any other dependencies to install it normally.
Usage
Example:
>>> import pyamdgpuinfo
>>> n_devices = pyamdgpuinfo.detect_gpus()
1 # we have 1 device present, so it'll be at index 0
>>> first_gpu = pyamdgpuinfo.get_gpu(0) # returns a GPUInfo object
>>> vram_usage = first_gpu.query_vram_usage()
>>> print(vram_usage)
3954978816 # number of bytes in use
All documentation is in the docstrings of each function/class.
Available functions are (see docstrings for more info):
- detect_gpus - Returns the number of GPUs available
- get_gpu - Returns a GPUInfo object for the device index specified
GPUInfo methods (see docstring for class overview)
- start_utilisation_polling - Starts polling GPU registers for utilisation statistics
- stop_utilisation_polling - Stops the utilisation polling thread
- query_utilisation - Queries utilisation of different GPU parts
- query_max_clocks - Queries max GPU clocks
- query_sclk - Queries shader (core) clock
- query_mclk - Queries memory clock
- query_vram_usage - Queries VRAM usage
- query_gtt_usage - Queries GTT usage
- query_temperature - Queries temperature
- query_load - Queries GPU load
- query_power - Queries power consumption
- query_northbridge_voltage - Queries northbridge voltage
- query_graphics_voltage - Queries graphics voltage
VRAM and GTT sizes are available as an attribute of GPUInfo.
Mentions
Parts of this package were inspired by radeontop.
License
GPLV3
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 Distributions
File details
Details for the file pyamdgpuinfo-2.1.6.tar.gz
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7146a0f82a570d7ee6f755c2922af9cf7e4adada1231ff50a8183bc86be468 |
|
MD5 | a0f18001fb4ac12d35a4ae5bcad32dd6 |
|
BLAKE2b-256 | c4d78b3d90db99726b17037e3df680f11cd8e1d85721f40799907ecef41cfe46 |
File details
Details for the file pyamdgpuinfo-2.1.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 116.0 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f5497c31a3a96b1a35c7277951c9d955807d84a5151abd76849b995b6a96b8 |
|
MD5 | 0b2ae527828fe906cad9f07e8c9d3708 |
|
BLAKE2b-256 | 6b382b447bd1920c02e9eb6d79e4af32d288536ca6f90f53b6c627e8657e4864 |
File details
Details for the file pyamdgpuinfo-2.1.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 116.0 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df93adf2c990bd5aa6c197a0c0ddd81666ad865e70f8b13a7eec2f9f21699627 |
|
MD5 | cda5e3f16cfff6752f34d78170882a7b |
|
BLAKE2b-256 | 9f8082e2461b06a2c5af7c9a12e97d2af8a3c6e77b03fb3e5928dca71a42dbf1 |
File details
Details for the file pyamdgpuinfo-2.1.6-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 115.9 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5690bc2a6d779b0ba7654e643acb30bf310c6823d4c3bff31ae1399388f3a291 |
|
MD5 | c249c3247df5aba4b93a490f67ac9072 |
|
BLAKE2b-256 | 549ce279f4388931eb024bf2c8311dde72f2c7f5d8792e54b65ec6e05963c023 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp312-cp312-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 354.3 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0653d359b26ec029df077189b7d91c126836abc0bd8713fef84ee46187131cb |
|
MD5 | 64e4f52da832421f7e041ad67cc147d8 |
|
BLAKE2b-256 | c6fe577a8c79226f37ec145293d08cf004dae3f14b69d874d261813e8eafa610 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 361.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af5498986b1090f7ddbfb4cf960f223ead88761f24dbacb5079656daefbe99e |
|
MD5 | 21aa39dd68fd460f7a062bbc20e8296c |
|
BLAKE2b-256 | 83f4ee1c94c11fd42d96b2594d5cbe0f3bdf5ec07abc95828fd8298d48ad9a3e |
File details
Details for the file pyamdgpuinfo-2.1.6-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 359.5 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff2d5dea9d4ade7bc387ccc77651992bae050c9f1e755ca72c1e36305f53d6f |
|
MD5 | cdf8056aa41aa9f2a7d0ab6b2ca87106 |
|
BLAKE2b-256 | 47a55d09dbda0af3d797c0e354de8cfe266b4f250d8f6aa36e1561975baf455c |
File details
Details for the file pyamdgpuinfo-2.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 365.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5237cb0feaa8d15eaebe1ff03888c731a2890449e44c1187f0b4b7c868e19f1b |
|
MD5 | 9efdca78b183958c658a84dfc80b587c |
|
BLAKE2b-256 | ff034553b326fde39e2bdb54a46e1b6319994089a640f9c7d2dd82bf03ddb307 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 344.8 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b6a02881d8569cafb55c1b767e8536462c909431ecc75b17ff995e469e87dac |
|
MD5 | bb78a908e64fad330b112a7f45279f3e |
|
BLAKE2b-256 | db45418669dc8b9255aadde2719d1ebcf5d2c0e0f876a51406eb520b198cdb19 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 352.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3d1f995b7d8e5e9ccd93d1a5db7994b720b8a86e34d4dafe3ab8debaef7ec9 |
|
MD5 | 25b2515380962576838f4ae90127263f |
|
BLAKE2b-256 | 690e1f4fc1ef00a9a82f74745db3835eee965bb80681623f8a2eada17f198ee6 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp39-cp39-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 347.8 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40b6057689c177f29c9556db1af3ed0e5b446c2214cefa26475e41be0b79b6a9 |
|
MD5 | c355ee6f2b2c13d9485692e493b12759 |
|
BLAKE2b-256 | 28c6fa39eedf83389320b89254c1d802df2f468ec6877c655985f723f3b9fb63 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 355.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ff4407893c8740b81ec91c11f69391ae2a0fc91b6a2a6c5897e6b127c546d86 |
|
MD5 | 95ae347fa47f98ea433f393d6d69e373 |
|
BLAKE2b-256 | ca7542d1494601b1052252b35b747ec35c06cc4762e6addcc39536b5382e5956 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp38-cp38-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp38-cp38-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 367.2 kB
- Tags: CPython 3.8, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9be390647e4673ec9b8f186b47865f230cd282f1f78afc9ecc8b8a82dc292a8 |
|
MD5 | 676e132b04c7d0bb863076fff2ff0e54 |
|
BLAKE2b-256 | 0d26c19d70084e30fe19cf249190d0846e6c6152cdd2fb4db00008c695edaf05 |
File details
Details for the file pyamdgpuinfo-2.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyamdgpuinfo-2.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb18ffe03844c7e81f81b015d2522297bf846f286b582db9e5cf65ea8998156d |
|
MD5 | 46529fe92198dd8d46a2a0048c0a6633 |
|
BLAKE2b-256 | bc7ab1ddff945037f8970b5cb0ffe718618007a64d185f51aaf7d4686adf70e5 |