Skip to content

Add a version.json file - #321

Merged
marbre merged 2 commits into
mainfrom
users/marbre/version_json
Apr 2, 2025
Merged

marbre merged 2 commits into
mainfrom
users/marbre/version_json

Conversation

@marbre

@marbre marbre commented Apr 1, 2025 •

Copy link
Copy Markdown
Member

This adds a dedicated json file to set version numbers, here used for the ROCm version, instead of setting it directly in the CMakeLists.txt. This can be more easily consumed by other scripts used in the CI or for packaging.

Progress on #222.

This adds a dedicated json file to set version numbers, here used for
the ROCm version, instead of setting it directly in the CMakeLists.txt.
This can be more easily consumed by other scripts used in the CI or for
packaging.
@marbre
marbre force-pushed the users/marbre/version_json branch from eec760a to 607f593 Compare April 1, 2025 15:01
Comment thread CMakeLists.txt Outdated
set(ROCM_MAJOR_VERSION 6)
set(ROCM_MINOR_VERSION 4)
set(ROCM_PATCH_VERSION 0)
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/version.json VERSION_JSON_STRING)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe put this in a block and don't leak anything but the component variables.

Also some error checking for if the match doesn't succeed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestions. I added a block and switched back to use the component variables instead of ROCM_VERSION. Furthermore, it is now checked if the match succeeded.

* Adds a block
* Switches back to use component variables
* Adds error checking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants