Repository navigation
[hipfile] Add initial hipFile support - #5217
Conversation
There was a problem hiding this comment.
Pull request overview
Adds initial integration for the hipFile project (from rocm-systems) into TheRock’s build, artifact, CI-stage, and packaging pipelines by introducing a new storage-libs stage and corresponding hipfile artifact/package wiring.
Changes:
- Introduce a new
storage-libs/CMake stage that buildshipfileas an external subproject and emits ahipfileartifact. - Extend build topology + CI workflow to include a
storage-libsbuild stage and a target-neutralhipfileartifact. - Add Linux packaging entries and update build tools/docs to recognize
storage-libs/hipfile.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| storage-libs/CMakeLists.txt | Declares/activates the hipfile subproject and provides the hipfile artifact. |
| storage-libs/artifact-hipfile.toml | Defines component slicing rules for the hipfile staged install tree. |
| README.md | Documents the new CMake enable flag for hipFile. |
| docs/development/windows_support.md | Notes storage-libs/hipFile is unsupported on Windows. |
| docs/development/build_system.md | Adds storage-libs/ to the documented sub-project directories. |
| CMakeLists.txt | Adds add_subdirectory(storage-libs) to the top-level build. |
| CLAUDE.md | Lists storage-libs/ as a repo subdirectory. |
| BUILD_TOPOLOGY.toml | Adds storage-libs source set/stage/artifact group and a hipfile artifact definition. |
| build_tools/packaging/linux/package.json | Adds hipfile packages and hooks them into metapackages. |
| build_tools/bump_submodules.py | Treats storage-libs as requiring system projects when bumping. |
| build_tools/build_python_packages.py | Includes hipfile in the kpack-split “devel” artifact list. |
| build_tools/analyze_build_times.py | Recognizes storage-libs as a stage for build-time analysis. |
| .github/workflows/multi_arch_build_portable_linux.yml | Adds a new storage-libs CI stage/job in the portable multi-arch workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
32204e2 to
efea015
Compare
efea015 to
1a35b74
Compare
1a35b74 to
8efb3dc
Compare
03e7da6 to
9c733f7
Compare
8ffc341 to
d8febec
Compare
632615b to
3a29bb6
Compare
## Motivation hipFile has a dependency on libmount, which in turn requires libblkid, both of which are built from the util-linux repository. This PR adds the dependency for both. ## NOTE This PR is required for getting hipFile into TheRock. The hipFile --> TheRock PR is here: #5217 hipFile also has a second dependency on oneTBB, which can be found here: #5660 ## Jira ID ROCM-1261 AIHIPFILE-170 ## Technical Details Adds a third-party dependency via the usual mechanism. util-linux is pulled from a GitHub tarball and configured (via meson) and built for packaging with TheRock. The feature is gated on `-DTHEROCK_ENABLE_SYSDEPS_UTIL_LINUX`, which defaults to OFF. When this PR is merged, #5217 will be updated to only build this dependency when hipFile is built. The util-linux repository can be found here: https://github.com/util-linux/util-linux ## Test Plan CI passes, manual inspection of artifacts. The project that needs this dependency is not yet in TheRock. <!-- Briefly summarize test outcomes. --> Everything passes, artifacts are named appropriately, RPATHs are correct. - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --------- Co-authored-by: akolliasAMD <99202231+akolliasAMD@users.noreply.github.com> Co-authored-by: akolliasAMD <akollias@amd.com>
lumachad
left a comment
There was a problem hiding this comment.
Just skimmed through it. I don't have much knowledge on the tool itself.
3a29bb6 to
cea96b5
Compare
06511f7 to
9c5a840
Compare
* Add a new storage-libs stage * Add hipFile to CLAUDE.md * Add storage-libs to root CMakeLists.txt * Add THEROCK_ENABLE_HIPFILE CMake option (default ON) * Add THEROCK_ENABLE_STORAGE_LIBS CMake option (default ON) * Add storage-libs to build_tools/analyze_build_times.py * Add storage-libs to bump list in build_tools/bump_submodules.py * Add storage-libs and hipfile info to: * docs/development/build_system.md * docs/development/windows_support.md * Add new file: storage-libs/CMakeLists.txt * Add new file: storage-libs/artifact-hipfile.toml
9c5a840 to
8eaae71
Compare
geomin12
left a comment
There was a problem hiding this comment.
overall lgtm but some comments
There was a problem hiding this comment.
i see that this built: https://therock-ci-artifacts.s3.amazonaws.com/27576722924-linux/logs/storage-libs/hipfile_install.log
however, i don't see any artifacts being created... is that right?
There was a problem hiding this comment.
Do you mean the missing .json packaging artifacts? If so, we are saving that for a follow-on PR.
There was a problem hiding this comment.
meant the missing .tar ... unless i am missing something
| @@ -0,0 +1,55 @@ | |||
| # Copyright Advanced Micro Devices, Inc. | |||
| # SPDX-License-Identifier: MIT | |||
|
|
|||
There was a problem hiding this comment.
wonder if we can have a parent if(THEROCK_ENABLE_STORAGE_LIBS) along with more granular if enablers
There was a problem hiding this comment.
There will almost certainly be additional storage libraries coming soon
| stage_display_name: "Stage - Storage Libs" | ||
| timeout_minutes: 240 # 4 hours |
There was a problem hiding this comment.
This took 1m9s (https://github.com/ROCm/TheRock/actions/runs/27576722924/job/81531817331?pr=5217), so we could set this timeout much lower. How about 1 hour? Or lower, like 30 minutes?
I think you'll want some room to grow, and we want these timeouts to catch gross configuration / build issues without burning CI runner time. The default timeout is 6 hours.
There was a problem hiding this comment.
When I set up the CI PR I will drop this to 30 min
There was a problem hiding this comment.
Our CI runs really quickly so we'll keep that timeout low as well
## Motivation Add hipFile (from rocm-systems) to TheRock ## NOTE This PR depends upon a third-party sysdeps dependency PRs: * util-linux (for libmount): #5337 ## Technical Details * Add a new storage-libs stage/grouping * Add hipFile to CLAUDE.md * Add storage-libs to root CMakeLists.txt * Add THEROCK_ENABLE_HIPFILE CMake option (default ON) * Add THEROCK_ENABLE_STORAGE_LIBS CMake option (default ON) * Add storage-libs to build_tools/analyze_build_times.py * Add storage-libs to bump list in build_tools/bump_submodules.py * Add storage-libs and hipfile info to: * docs/development/build_system.md * docs/development/windows_support.md * Add new file: storage-libs/CMakeLists.txt * Add new file: storage-libs/artifact-hipfile.toml Packaging will be added in a follow-up PR This PR needed for rocm-examples' ROCm/rocm-examples#465 ## Jira ID ROCM-1261 AIHIPFILE-170 ## Test Plan Verify TheRock CI passes ## Test Result TBD ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
## Motivation ROCm/TheRock#5217 got merged in rocm-systems and the compilation failure got caught at bump PR level - https://github.com/ROCm/TheRock/actions/runs/27792443951/job/82247396030?pr=5969 For shift left we need to enable TheRock CI summary gate as rocm-systems pre-commit ROCM-1261 AIHIPFILE-27 ## Summary - Add `projects/hipfile` subtree mapping to `storage_libs` project in `therock_matrix.py` so path changes under `projects/hipfile/` correctly trigger targeted component CI - Add `storage_libs` entry to `project_map` with `-DTHEROCK_ENABLE_STORAGE_LIBS=ON`; tests left empty to be wired up in a future PR once available - Bump pinned TheRock ref from `c90e6caf` (2026-06-15) to `bbd306dc` (2026-06-16, merge commit of ROCm/TheRock#5217) across all 6 CI workflow files to pick up `THEROCK_ENABLE_STORAGE_LIBS` CMake support - Fix pre-existing `startswith()` prefix-matching bug in `therock_configure_ci.py` where a subtree key that is a string prefix of another (e.g. `projects/hip` vs `projects/hipfile`) would incorrectly match both, causing wrong cmake flags to merge in - Add unit tests covering hipfile PR triggering `storage_libs` Linux CI with `THEROCK_ENABLE_STORAGE_LIBS=ON`, and confirming Windows CI is correctly skipped for this Linux-only component ## Test plan - [x] All 28 unit tests in `therock_configure_ci_test.py` pass locally - [ ] Verify a PR touching `projects/hipfile/` triggers the `storage_libs` CI job with `-DTHEROCK_ENABLE_STORAGE_LIBS=ON` and not `ENABLE_ALL=ON` - [ ] Verify a PR touching `projects/hip/` or `projects/hipother/` is unaffected
Motivation
Add hipFile (from rocm-systems) to TheRock
NOTE
This PR depends upon a third-party sysdeps dependency PRs:
Technical Details
Packaging will be added in a follow-up PR
This PR needed for rocm-examples' ROCm/rocm-examples#465
Jira ID
ROCM-1261
AIHIPFILE-170
Test Plan
Verify TheRock CI passes
Test Result
TBD
Submission Checklist