Skip to content

Test docker images can now work on remote repos#16

Merged
riley-dixon merged 8 commits into
developfrom
rildixon/ci-set-rocm-version
Jan 27, 2026
Merged

Test docker images can now work on remote repos#16
riley-dixon merged 8 commits into
developfrom
rildixon/ci-set-rocm-version

Conversation

@riley-dixon

Copy link
Copy Markdown
Owner

No description provided.

This will allow us to specify what version of ROCm we are trying
to build hipFile against. This can be helpful in non-standard setups
where ROCm is installed in a different location, as well as for
downstream tasks reliant on the ROCm version (e.g. packaging).

If ROCM_VERSION is not specified, a fallback method is provided to
read the version file provided by ROCM_PATH.
These 3 environment variables are known/relied upon for setting the
filename for the DEB/RPM packages.
rocm-cmake does not consider if these are set as CMAKE variables.
In CI we can easily set these environment variables as expected,
but we would still like the ability for a developer to build
this package locally and have a reasonably similar filename, without
the developer needing to remember to explicitly provide these
environment variables.
This is a rather widespread change across CI.

The ROCm Version in each DOCKERFILE is now treated as a build argument instead
of a constant. As such, the CI can specify on-demand which version of ROCm it
would like to test against each distro. The changes made here also assume
that the ROCm version will be part of the workflow matrix, and as such
changes the container names to ensure no conflicts arise should the containers
run on the same host.

While ROCM_VERSION is passed around as an input/output in CI, it is also
available directly from the CI image as an environment variable for
convenience.

One quirk: ROCm versions are typically expressed as MAJOR.MINOR.PATCH.
The ROCm package repo (repo.radeon.com) however strips the PATCH
if it is equal to 0. This shortened version is not used elsewhere
outside of documentation/marketing.
This changes the GHCR URL that is used to pull the CI images. Originally
it was fixed to the main hipFile repository. Now, the URL will set itself
to the GHCR registry space of the repository the workflow is being
operated on.
@riley-dixon
riley-dixon force-pushed the rildixon/ci-set-rocm-version branch from b825979 to d886151 Compare January 27, 2026 17:36
@riley-dixon
riley-dixon merged commit ca56514 into develop Jan 27, 2026
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant