ROCm / amdsmi

AMD SMI
https://rocm.docs.amd.com/projects/amdsmi/en/latest
MIT License
29 stars 12 forks source link

[Question] API stability and versioning #21

Closed jaywonchung closed 2 months ago

jaywonchung commented 2 months ago

First of all, thanks for building this. This is much needed. I'm building a Python-based tool that has NVIDIA GPU support, and I'm adding AMD GPU support as well. I hope the tool to be generic over multiple ROCm versions, so I wanted to ask about API stability and versioning plans for amdsmi.

Thanks a lot!

marifamd commented 2 months ago

@jaywonchung Thanks for reaching out! This is a new tool, so it is under regular development.

While the CLI tool will be subject to change, the C and Python Libraries should not experience any drastic changes and if they do we are doing our best to post all new updates (CLI Tool and Libraries) in the CHANGELOG.

We release stable versions aligning to the ROCm release schedule (and within ROCm), but we have a Tool version and a Library version. Our versioning is based on Year, Major(Month), Minor, and Release. We also print out whatever the active version of ROCm you have active on your system.

You can check the version via the tool:

$ amd-smi version
AMDSMI Tool: 24.5.1+881920c | AMDSMI Library version: 24.5.1.0 | ROCm version: 6.1.0

or by calling the API :

$ python3
python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import amdsmi
>>> amdsmi.amdsmi_init()
>>> tool_version = amdsmi.__version__
>>> library_version = amdsmi.amdsmi_get_lib_version()
>>> tool_version
'24.5.1+881920c'
>>> library_version
{'year': 24, 'major': 5, 'minor': 1, 'release': 0, 'build': '2'}

Regarding the python bindings, we intend to keep the python bindings upto date with C++ API changes. If you find that and C++ API's are not reflected in the python bindings, please file another issue and we will handle it accordingly.

Thanks for the appreciation, Maisam

jaywonchung commented 2 months ago

Thanks a lot for the kind response! All questions resolved.