Skip to main content

AMD GPU stats

Project description

pyamdgpuinfo

AMD GPU information

Install

pip3 install pyamdgpuinfo

Only linux is supported, using the amdgpu driver.

Precompiled wheels for python 3.6, 3.7, 3.8, 3.9 and 3.10 are the default method of install. This means that you don't need cython or any other dependencies to install it normally.

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

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 northbrige 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.2.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.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (324.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (323.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (324.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

pyamdgpuinfo-2.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298.3 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.2.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2.tar.gz
Algorithm Hash digest
SHA256 706d9f09f8d97656bae642ac87f958d7977bbe751efe1350f3fcf2a24966026a
MD5 08719ff166d8be63c04c28904e60375b
BLAKE2b-256 2297c5eebca15041138ad69eac26b2a64ef44fa3e371c592470bbdf16301884b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 324.7 kB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8d5b77a5a47e433804edb84de2d49d49dfcb018b21b408c7c38e9147d82e18e
MD5 0cf6133c096a888a0de2c777b4bd5527
BLAKE2b-256 8768b0204a334d7272084430ff516d21fe14d43ad102cc93bbc7ada90cebc1cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 323.0 kB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a3e045e12d5d8288de32af46dc4d526b060463061507772093c10797157a68f
MD5 91b89317c2b21f7fc4e2b706dbb01ff1
BLAKE2b-256 bae580c587c438f308e0bedff27d20b78ea5ee6f1148a72b419bf6039168f100

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 324.9 kB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 879d103f8905174e9a8893bb0ef719cbbe5795a516300ece27e574d8862b1a72
MD5 928db46d39b7548ddcbaa6a3cceaf16e
BLAKE2b-256 c2a1d0eafeb7ce4c3910033d5a0d95d90eecb256e9e8c0ce11aebe130267ca34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyamdgpuinfo-2.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 298.4 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01ef7556ef7c040d5dd977f536d0ad3bcc53d34ed5eec9ae30cecb7157d5af99
MD5 7116af9a7ffc7ec10baf6f930af2af56
BLAKE2b-256 871a623aac84b3f2f5a042d0214aee21a24d0bc102d95330ade75aff382d50c7

See more details on using hashes here.

File details

Details for the file pyamdgpuinfo-2.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyamdgpuinfo-2.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 298.3 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyamdgpuinfo-2.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d3f2c4023fdc285cdf435644ae3067378c77c76df603f9925f11db94e40e159
MD5 563cc2057063fbbdacb1e9668ed7e78d
BLAKE2b-256 061c14d3919a8d229a8763c64b9cdb19b00a7ac2b4c20347b98ac0bc08117960

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