Skip to main content

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

Release files for pyamdgpuinfo 2.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyamdgpuinfo 2.1.8
File Size Uploaded
pyamdgpuinfo-2.1.8.tar.gz 21.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyamdgpuinfo 2.1.8
File
pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details
pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.2+ x86-64 Details
pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details

Total release size: 4.5 MB

Release files / pyamdgpuinfo-2.1.8.tar.gz

Download URL pyamdgpuinfo-2.1.8.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e389981f00bf42fde41233958a21c6288853a46c7dfe7b062b2abe054cfb1d7b
BLAKE2b-256 checksum
How to use checksums
61b1399158002f4246d54d2757021544dea89038ecd320cc8ea1db36bdddac23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 374.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
f614089edbb674020946a6f63a7f7f501303d08ccb32e92008544b089865b969
BLAKE2b-256 checksum
How to use checksums
bda0f4e951f64468ce4adbc063f856cf1419f587e3bc77087bc9651cee9f9326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 390.6 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0ac59065ffe1303f4887b1b0b6d16e836e90005e14c4a7a48feecfd5fc382f77
BLAKE2b-256 checksum
How to use checksums
ccba93055b30af897cf01de03d93d91ea1be4d9d7a691be8fe8cbf6d02ba6dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp314-cp314-musllinux_1_2_x86_64.whl
Size 361.6 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
b78dcc38876a192bfeea986aa33256ae25445f47909cf060938581384ae16da1
BLAKE2b-256 checksum
How to use checksums
2d854caac5ce82a1d3b2264ede98905513cf1ab8540015e9e9b0c2fb4b193b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp314-cp314-manylinux_2_28_x86_64.whl
Size 372.8 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1ae569bd3d9e7305f1f542bdd1e0b2b8746fd454d43272b385da72af2144769f
BLAKE2b-256 checksum
How to use checksums
a4c80b7414944bc6a3e8da931684a15dc5dc8f775f7d6a72082ad009ab386783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp313-cp313-musllinux_1_2_x86_64.whl
Size 363.0 kB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
17e783a0a8890f33711aa028610fe03023e73f6f613e0263ae7749947d65a12b
BLAKE2b-256 checksum
How to use checksums
9b8efd134a10a55cb1cec422f8de4cef4974a9092a670b1e91094992c6ec1ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp313-cp313-manylinux_2_28_x86_64.whl
Size 375.0 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ea02fa624fed78c5d19f97136c4696123fdd7503d1cf86055176143fdc290c36
BLAKE2b-256 checksum
How to use checksums
7b8f6ed9a6324632e2ce2467df9b3d485a4de1d13268fb73689056d2e6c5e855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp312-cp312-musllinux_1_2_x86_64.whl
Size 374.4 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
64c76edbe96bb90a3feb02ff81abae49f6054a345e42e885b2d05bb4008402a9
BLAKE2b-256 checksum
How to use checksums
bde557a67b0092b46a15581085349b4b62db6a1f8f0b5d2a86bab1ba601a8101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp312-cp312-manylinux_2_28_x86_64.whl
Size 386.3 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9925571d64ba9ad69fcd88b993a7b4b674639cab5d9c3c2170684448a43d460b
BLAKE2b-256 checksum
How to use checksums
a7af1431c481ec0f52e3313773b0244c65081ccc18e40b485eabe846a494914d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp311-cp311-musllinux_1_2_x86_64.whl
Size 363.6 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
dc6ee60cc62bf416fa2b77d11176c277c3dd36bf3530df5e609f2a5308f1dc0d
BLAKE2b-256 checksum
How to use checksums
5d4e3263b6c09f472b19fedc592c73ad5cb62eb44c491dd8f60e27372fc54e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp311-cp311-manylinux_2_28_x86_64.whl
Size 374.6 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ba6c478f552a22b86b684ab3cd87510596fafc94afc6ddd98765e171ae9d1919
BLAKE2b-256 checksum
How to use checksums
2626ce7f6e55ab5d95d2180a6e483cec66c25721c803cbdda1bf8c4640ccc73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp310-cp310-musllinux_1_2_x86_64.whl
Size 347.9 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
f9651d8df437cec50511b4fd12af8014a22c9d91ae2ffa209806a74b988703e3
BLAKE2b-256 checksum
How to use checksums
acc633bfa8a6f32294411598407ee2f1262fbe028673675ae63750936662c353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL pyamdgpuinfo-2.1.8-cp310-cp310-manylinux_2_28_x86_64.whl
Size 358.2 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e7d34e607ff497ed391a06d97216c0089f3218b28dbc506ae571d6956bf05b80
BLAKE2b-256 checksum
How to use checksums
aa58720ead56fb6d7e4481dcd46ca54f59de2a819800d8a76153c168ebb8d993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.1.8 This release

13 release files

2.1.6

14 release files

2.1.5

11 release files

2.1.4

11 release files

2.1.3

9 release files

2.1.2

6 release files

2.1.1

5 release files

2.1.0

5 release files

2.0.0

5 release files

1.0.5

5 release files

1.0.4

5 release files

1.0.3

1 release file

1.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page