Repository navigation
Commit 410fcd8
ci: add ROCm version and CK inputs to the TheRock workflow dispatch (#567)
## Motivation
Build ROCm Examples (`ci_therock.yml`) and Nightly CI (`ci_nightly.yml`)
can only be dispatched against the latest TheRock nightly, and they
never build the Composable Kernel examples: the tarball and wheel setups
leave `ENABLE_CK` unset and the preinstalled one sets it to `OFF`. The
only workflow that builds CK, Build Libraries, is pinned to the ROCm
10.1 image. So a CK change cannot be checked in CI against a specific
ROCm, e.g. a release candidate. #565 (CK sync with 10.2.0rc0) is an
example: its Build Libraries run compiles the 10.2 examples against
10.1's CK and fails for that reason alone.
## Technical Details
- **`build-rocm-examples-reusable.yml`**
- New `enable_ck` input (boolean, default `false`). A new "Set CK build
flag" step writes `ENABLE_CK=ON|OFF` for every install method, replacing
the hard-coded `ENABLE_CK=OFF` of the preinstalled setup.
- `rocm_version` already pins a nightly (Quartz uses it). An rc version
such as `10.2.0rc0`, without an explicit `wheels_url`/`tarballs_url`,
now installs from the release candidate index
(`https://rc.repo.amd.com/rocm/core/tarball/`,
`https://rc.repo.amd.com/rocm/core/whl-next/`) instead of the nightly
one.
- **`ci_therock.yml`, `ci_nightly.yml`**: new `rocm_version` (string,
empty = latest nightly) and `enable_ck` (boolean) dispatch inputs,
passed to the reusable workflow. With a `rocm_version`,
`configure_ci.py` gets `--exclude-preinstalled`, as in
`quartz_test.yml`, because the `stable_release` image cannot install
another ROCm.
Push, pull_request, schedule and Quartz runs pass neither input and are
unchanged.
**Note:** TheRock's Python wheels currently do not include Composable
Kernel. The 10.2.0rc0 `rocm-sdk-devel` wheel has no `ck`/`ck_tile`
headers and no `composable_kernel` CMake package, and the `rocm`
meta-package has no other component that provides it. With
`install_method=whl-multi-arch`, `enable_ck=true` turns the flag on, but
`Libraries/ComposableKernel` skips itself ("Composable Kernel could not
be found"). To build CK, use `install_method=tarball-multi-arch`; the
tarballs ship CK.
Example, for a CK branch that contains this change:
```
gh workflow run ci_therock.yml --ref <branch> \
-f rocm_version=10.2.0rc0 -f enable_ck=true \
-f install_method=tarball-multi-arch -f distro=ubuntu-24.04 -f gpu_config=gfx1100
```
## Test Plan
- Dispatch of Build ROCm Examples on this branch with
`rocm_version=10.2.0rc0`, `enable_ck=true`, gfx1100, Ubuntu 24.04, both
install methods: [run
41123640840](https://github.com/ROCm/rocm-examples/actions/runs/41123640840).
- pre-commit (including the GitHub Actions workflow lint) and zizmor on
the three workflows.
## Test Result
- **whl-multi-arch:** passed. It installed `rocm==10.2.0rc0` from
`https://rc.repo.amd.com/rocm/core/whl-next/`, set
`ROCM_EXAMPLES_ENABLE_CK=ON`, and ctest passed 371/371. As expected
without CK in the wheels (see the note above),
`Libraries/ComposableKernel` reported "Composable Kernel could not be
found" and built nothing.
- **tarball-multi-arch:** queued at the time of writing (waiting for a
gfx1100 runner). On this branch the CK examples are still
`amd-staging`'s, which do not compile against 10.2.0rc0's CK (#552,
#565), so this job is expected to fail in the CK build; what it shows is
that the rc tarball installs and the CK examples are configured.
- **Checks:** pre-commit passes. zizmor reports the same findings before
and after the change (36, none new).
## Added/Updated documentation?
<!-- Make sure each new example has a README and the root-level README
contains all new examples. -->
<!-- New Libraries examples should have a library-level README
explaining the dependencies, build process, and supported platforms. -->
- [ ] Yes
- [x] No, does not apply to this PR.
## Included Visual Studio files?
- [ ] Yes
- [x] No, does not apply to this PR.
## Submission Checklist
- [ ] New examples contain proper CMake and Make files.
- [x] I have updated relevant CI workflows and the new examples are
being built and tested in CI.
- [ ] Check and guard against unsupported ASICs if relevant dependent
libraries have limited support.
- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 88fa5b0 commit 410fcd8
3 files changed
Lines changed: 58 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | | - | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| |||
114 | 123 | | |
115 | 124 | | |
116 | 125 | | |
117 | | - | |
| 126 | + | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
121 | 134 | | |
122 | 135 | | |
123 | 136 | | |
| |||
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
170 | | - | |
171 | 183 | | |
172 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
173 | 193 | | |
174 | 194 | | |
175 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
75 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
| |||
86 | 98 | | |
87 | 99 | | |
88 | 100 | | |
| 101 | + | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| |||
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
99 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| |||
110 | 122 | | |
111 | 123 | | |
112 | 124 | | |
| 125 | + | |
| 126 | + | |
0 commit comments