Skip to content

[hipfile] Add initial hipFile support - #5217

Merged
derobins merged 1 commit into
mainfrom
users/derobins/add_hipfile_support
Jun 16, 2026
Merged

derobins merged 1 commit into
mainfrom
users/derobins/add_hipfile_support

Conversation

@derobins

@derobins derobins commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Add hipFile (from rocm-systems) to TheRock

NOTE

This PR depends upon a third-party sysdeps dependency PRs:

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 builds hipfile as an external subproject and emits a hipfile artifact.
  • Extend build topology + CI workflow to include a storage-libs build stage and a target-neutral hipfile artifact.
  • 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.

Comment thread storage-libs/CMakeLists.txt Resolved
Comment thread storage-libs/artifact-hipfile.toml Resolved
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch 3 times, most recently from 32204e2 to efea015 Compare May 12, 2026 21:28
@derobins
derobins requested a review from Copilot May 12, 2026 21:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Comment thread storage-libs/artifact-hipfile.toml Resolved
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch from efea015 to 1a35b74 Compare May 12, 2026 22:49
@derobins
derobins requested a review from Copilot May 12, 2026 22:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Comment thread storage-libs/CMakeLists.txt Resolved
Comment thread BUILD_TOPOLOGY.toml Resolved
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch from 1a35b74 to 8efb3dc Compare May 13, 2026 00:53
@derobins
derobins requested a review from Copilot May 13, 2026 00:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Comment thread storage-libs/CMakeLists.txt Resolved
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch 2 times, most recently from 03e7da6 to 9c733f7 Compare May 15, 2026 19:35
@derobins
derobins marked this pull request as ready for review May 15, 2026 19:36
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch 2 times, most recently from 8ffc341 to d8febec Compare May 15, 2026 21:16
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch 3 times, most recently from 632615b to 3a29bb6 Compare June 8, 2026 23:41
derobins added a commit that referenced this pull request Jun 9, 2026
## 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 lumachad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just skimmed through it. I don't have much knowledge on the tool itself.

Comment thread CMakeLists.txt Resolved
Comment thread CMakeLists.txt Resolved
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch from 3a29bb6 to cea96b5 Compare June 9, 2026 19:48
@j-stephan j-stephan mentioned this pull request Jun 12, 2026
6 of 8 tasks
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch 3 times, most recently from 06511f7 to 9c5a840 Compare June 15, 2026 20:40
* 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
@derobins
derobins force-pushed the users/derobins/add_hipfile_support branch from 9c5a840 to 8eaae71 Compare June 15, 2026 21:11
@derobins
derobins requested a review from lumachad June 15, 2026 21:57
@ScottTodd
ScottTodd requested review from ScottTodd and marbre June 15, 2026 22:09

@geomin12 geomin12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

overall lgtm but some comments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do you mean the missing .json packaging artifacts? If so, we are saving that for a follow-on PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

meant the missing .tar ... unless i am missing something

@@ -0,0 +1,55 @@
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wonder if we can have a parent if(THEROCK_ENABLE_STORAGE_LIBS) along with more granular if enablers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There will almost certainly be additional storage libraries coming soon

Comment on lines +214 to +215
stage_display_name: "Stage - Storage Libs"
timeout_minutes: 240 # 4 hours

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When I set up the CI PR I will drop this to 30 min

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Our CI runs really quickly so we'll keep that timeout low as well

@derobins
derobins merged commit bbd306d into main Jun 16, 2026
118 of 125 checks passed
@derobins
derobins deleted the users/derobins/add_hipfile_support branch June 16, 2026 17:00
amd-chiranjeevi pushed a commit that referenced this pull request Jun 17, 2026
## 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.
rahulc-gh added a commit to ROCm/rocm-systems that referenced this pull request Jun 21, 2026
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants