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.7-3.10 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


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.3.tar.gz (21.8 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.3-cp310-cp310-musllinux_1_1_x86_64.whl (306.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.1+ x86-64

pyamdgpuinfo-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (309.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.3-cp39-cp39-musllinux_1_1_x86_64.whl (307.0 kB view details)

Uploaded CPython 3.9musllinux: musl 1.1+ x86-64

pyamdgpuinfo-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (310.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.3-cp38-cp38-musllinux_1_1_x86_64.whl (319.7 kB view details)

Uploaded CPython 3.8musllinux: musl 1.1+ x86-64

pyamdgpuinfo-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.3-cp37-cp37m-musllinux_1_1_x86_64.whl (282.7 kB view details)

Uploaded CPython 3.7mmusllinux: musl 1.1+ x86-64

pyamdgpuinfo-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.3.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyamdgpuinfo-2.1.3.tar.gz
Algorithm Hash digest
SHA256 16bc70d84ce898144a76e5456a134a45944f8b1d12b2b351277c25bb566210eb
MD5 8745699ddaeebce6b046ee90f1779a45
BLAKE2b-256 1a11418de9ae116a2c9271d2122ae811e5ea60ddbb9d1743361a034b93e8cefe

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a6a92d759356250e4bed2294bc33a589f768c09d612157e53245b7ddd6873ba5
MD5 86766bcee37c43decdb0e53bf3acd863
BLAKE2b-256 fecd4cedc2be9dcc3563c840dd8ae1179fe9de3087b52c73d21e19eb0ef4c6a9

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c283e0bb7ba2f40e056118560005c6560e6bd4dcee2f6de0930e12d26bb5e81f
MD5 085f5d1da8a0c49d3e624f67ea679982
BLAKE2b-256 75cdfa78fb422592015970ed0c683ad5ed440788aef99aaa304cdb55228f1b29

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 36cec6b592a75681f70f33a3dfa2cc75dcbf87358540a095b3f0509f27418978
MD5 1dcf31ada029e40248bee8904d663732
BLAKE2b-256 925be6c65b5f47294de2b2a2c88a48bccf4eb4fdfd4c9f077a3f5df3ee74999e

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eadafcd5ca66ad77d21e3c0aa7200931e2314ec2a410d9820d7adbb0755601fd
MD5 0af9eb010393a297adda8435e822d2ce
BLAKE2b-256 32c5c4eb6ddf2289a603afde6dadb2d9e932e7b88a89fcd527ba4f21b6d0bf43

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 21625a3ff6a11545b6bc8a7087c3538427eb3380885a32fcfa34f75ed8212c50
MD5 9c6edf1a6916c0c1b61fdf0fe82ca744
BLAKE2b-256 2b5b92e9c93aedf7ff72c4e526648b7a16f0e33934a3d4da6d9a964652c46961

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea6fea7479a4db6753dbdc7efaedde757178238fa238f196ce494beec3ccb706
MD5 9cd55fb222b61b63f5458c882e8407b3
BLAKE2b-256 194679bd80a1574be9bb6aa84d2e1efd516d4918110fbbf228b917066ea7a43e

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp37-cp37m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0e0350a6e91f741b1396c1a23dd66fbbfb6a2821b1520ed69c4a2f00e140aa8f
MD5 ab577c6e15fb0c73ca48de0fb75f2b4d
BLAKE2b-256 a3ecf9f67001015a7f7d327d3d169101b3b1286d3d2c8f7c452698bc7026e967

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyamdgpuinfo-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0be0dbba75a3e65f7117f9bfb4085a319092ee8ede68edab1f06f9e74f25355c
MD5 17e96b406b93fd703cd4bfc77d3f0162
BLAKE2b-256 ff2d16e33f40a218a0a1f41734350179aaf93099e56f2d689eb8bb93c37596c9

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