Commit d934cc7
[RCCL] Detect ROCm version via core symlink for multi-arch
installs (#7011)
## Motivation
Allow RCCL to configure against ROCm installs that use the new
multi-arch packaging layout where .info/version is not at the top level
of ROCM_PATH.
## Technical Details
In projects/rccl/CMakeLists.txt, the ROCm version detection now reads
${ROCMCORE_PATH}/.info/version and falls back to
${ROCMCORE_PATH}/core/.info/version (the core alternatives symlink) when
the former is absent.
## JIRA ID
AICOMRCCL-1247
## Test Plan
Configured RCCL with CMake against a multi-arch /opt/rocm (7.13.0)
install that lacks a top-level .info/version.
## Test Result
CMake now reads the version from /opt/rocm/core/.info/version and
reports ROCm version: 7.13.0 instead of failing at the file(READ ...)
step.
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
[rocm-systems] ROCm/rocm-systems#7011 (commit c79a53e)1 parent a70e4c3 commit d934cc7
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
| |||
0 commit comments