Skip to main content

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.10-3.14 are the default method of install. This means that you don't need Cython or any other dependencies to install from PyPi.

Usage

Example:

>>> import pyamdgpuinfo
>>> 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()
>>> 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 functional units for utilisation statistics
  • stop_utilisation_polling - Stops utilisation polling
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyamdgpuinfo-2.1.8.tar.gz (21.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl (374.9 kB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl (390.6 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl (361.6 kB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl (372.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl (363.0 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl (375.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl (374.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl (386.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl (363.6 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl (374.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl (347.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl (358.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file pyamdgpuinfo-2.1.8.tar.gz.

File metadata

  • Download URL: pyamdgpuinfo-2.1.8.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyamdgpuinfo-2.1.8.tar.gz
Algorithm Hash digest
SHA256 e389981f00bf42fde41233958a21c6288853a46c7dfe7b062b2abe054cfb1d7b
MD5 308cd8d27c424d68c61892f82a8e3b27
BLAKE2b-256 61b1399158002f4246d54d2757021544dea89038ecd320cc8ea1db36bdddac23

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f614089edbb674020946a6f63a7f7f501303d08ccb32e92008544b089865b969
MD5 ba4231fe9363f3ebdf495a7873ca82ab
BLAKE2b-256 bda0f4e951f64468ce4adbc063f856cf1419f587e3bc77087bc9651cee9f9326

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ac59065ffe1303f4887b1b0b6d16e836e90005e14c4a7a48feecfd5fc382f77
MD5 d76c8e6eadba2f74897e985bddc47b5b
BLAKE2b-256 ccba93055b30af897cf01de03d93d91ea1be4d9d7a691be8fe8cbf6d02ba6dbe

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b78dcc38876a192bfeea986aa33256ae25445f47909cf060938581384ae16da1
MD5 6b7c1b5eec20878571936441390ee38b
BLAKE2b-256 2d854caac5ce82a1d3b2264ede98905513cf1ab8540015e9e9b0c2fb4b193b7d

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1ae569bd3d9e7305f1f542bdd1e0b2b8746fd454d43272b385da72af2144769f
MD5 8a97aa007aed034c82b8e0c67dead41b
BLAKE2b-256 a4c80b7414944bc6a3e8da931684a15dc5dc8f775f7d6a72082ad009ab386783

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 17e783a0a8890f33711aa028610fe03023e73f6f613e0263ae7749947d65a12b
MD5 dc1a333a328c5375bb7c758024f44b69
BLAKE2b-256 9b8efd134a10a55cb1cec422f8de4cef4974a9092a670b1e91094992c6ec1ee5

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea02fa624fed78c5d19f97136c4696123fdd7503d1cf86055176143fdc290c36
MD5 2488695bc0ccad15fe76a1cab3969d99
BLAKE2b-256 7b8f6ed9a6324632e2ce2467df9b3d485a4de1d13268fb73689056d2e6c5e855

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 64c76edbe96bb90a3feb02ff81abae49f6054a345e42e885b2d05bb4008402a9
MD5 00b2e80af0a73a96f2d5efc482e85fbd
BLAKE2b-256 bde557a67b0092b46a15581085349b4b62db6a1f8f0b5d2a86bab1ba601a8101

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9925571d64ba9ad69fcd88b993a7b4b674639cab5d9c3c2170684448a43d460b
MD5 0aa4487474e476968095927e48340293
BLAKE2b-256 a7af1431c481ec0f52e3313773b0244c65081ccc18e40b485eabe846a494914d

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dc6ee60cc62bf416fa2b77d11176c277c3dd36bf3530df5e609f2a5308f1dc0d
MD5 cb4e3b1d0063f87437548d033b51e5ed
BLAKE2b-256 5d4e3263b6c09f472b19fedc592c73ad5cb62eb44c491dd8f60e27372fc54e1d

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba6c478f552a22b86b684ab3cd87510596fafc94afc6ddd98765e171ae9d1919
MD5 8c2bf8aa58ec0d5bc3dce1160a6cd14c
BLAKE2b-256 2626ce7f6e55ab5d95d2180a6e483cec66c25721c803cbdda1bf8c4640ccc73a

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f9651d8df437cec50511b4fd12af8014a22c9d91ae2ffa209806a74b988703e3
MD5 2d1b9e223ea4d394614d0c2a495a7b11
BLAKE2b-256 acc633bfa8a6f32294411598407ee2f1262fbe028673675ae63750936662c353

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7d34e607ff497ed391a06d97216c0089f3218b28dbc506ae571d6956bf05b80
MD5 5f874a8de2eed6d1a041e1746fe8e103
BLAKE2b-256 aa58720ead56fb6d7e4481dcd46ca54f59de2a819800d8a76153c168ebb8d993

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page