Community-maintained Python bindings for AMDSMI.
Whenever a new release is published to the official AMDSMI repository, we run a simple script to checkout the py-interface
directory of the tag and push it to this repository and PyPI.
For the source code and API documentation, please see py-interface
.
Note
At this time, there are no official Python bindings for AMDSMI on PyPI. Rather, bindings are distributed together with ROCm, which complicates dependency management and installation. Thus, we created this community-maintained binding package.
When AMD intends to officially maintain the amdsmi
package on PyPI, we are happy to transfer ownership. Please contact the current maintainers Parth Raut ([email protected]) and Jae-Won Chung ([email protected]).
pip install amdsmi
Important
- Ensure your ROCm version matches the
amdsmi
package version. For instance, if you are using ROCm 6.2.1, runpip install amdsmi==6.2.1
. (See Versioning for detais.) - Ensure you have
libamd_smi.so
in your system. It's shipped together with ROCm. Search order:site-packages/amdsmi/libamd_smi.so
(inside theamdsmi
installation directory; useful for debugging/dev)- If environment variable
ROCM_PATH
is set,$ROCM_PATH/lib/libamd_smi.so
- (Since 6.2.3) If environment variable
ROCM_PATH
is not set,/opt/rocm/lib/libamd_smi.so
AMDSMI seems to have two parallel release strategies:
- AMDSMI package releases, based on year, month, and revision (e.g., 24.5.0).
- ROCm-based releases, which is released whenever a new ROCm version is released (e.g., 6.2.2).
At the moment, we adopt the second ROCm-based versioning strategy. So, the amdsmi
package version is identical to the ROCm version the bindings are released against.
See here for a full list of releases.
Most issues would be better off reported directly to ROCm/amdsmi. If you believe the bug is specific to the bindings package, please file an issue on this repository.