Skip to content

rocAL Python - Add __version__ Atrribute #451

Merged
kiritigowda merged 6 commits into
ROCm:developfrom
LakshmiKumar23:lk/add_version_module
Feb 16, 2026
Merged

rocAL Python - Add __version__ Atrribute #451
kiritigowda merged 6 commits into
ROCm:developfrom
LakshmiKumar23:lk/add_version_module

Conversation

@LakshmiKumar23
Copy link
Copy Markdown
Contributor

Motivation

This PR introduces the attribute __version__ to the rocal python module for users to query

Technical Details

Can be used with the external amd.rocal module or internal rocal_pybind module.

Test Plan

Test querying for __version__ after building and installing rocAL.

Test Result

Example results after building rocal on a system with python3.10 and python3.11

lakshmi@kapu:~/work/lk/rocAL/build$ python3
Python 3.10.12 (main, Jan  8 2026, 06:52:19) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rocal_pybind
>>> import amd.rocal
>>> print(rocal_pybind.__version__)
2.5.0
>>> print(amd.rocal.__version__)
2.5.0
>>> exit()
lakshmi@kapu:~/work/lk/rocAL/build$ python3.11
Python 3.11.14 (main, Oct 10 2025, 08:54:03) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rocal_pybind
>>> import amd.rocal
>>> print(amd.rocal.__version__)
2.5.0
>>> print(rocal_pybind.__version__)
2.5.0
>>> exit()

Submission Checklist

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #451   +/-   ##
========================================
  Coverage    79.11%   79.11%           
========================================
  Files          314      314           
  Lines        24576    24576           
========================================
  Hits         19441    19441           
  Misses        5135     5135           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kiritigowda kiritigowda merged commit c549fde into ROCm:develop Feb 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:precheckin enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants