/amdgpu-pptable

Python library that converts powerplay tables to ctypes structs, and a Qt GUI editor for these struct objects

Primary LanguagePythonMIT LicenseMIT

Tests badge flake8 lint badge pypi badge

AMDGPU PowerPlay table parser

A Python library that converts AMDGPU PowerPlay tables to ctypes structs.

Uses code generated from MIT-licensed AMDGPU Linux driver headers.

For a Qt GUI editor see amdgpu-pptable-editor-qt

Generating ctypes structs

Generated code is tracked in git, it is located in src/amdgpu_pptable/generated.

To re-generate it (with, maybe, different kernel sources):

$ tox -e generate-ctypes -- -k path/to/kernel/sources