ROCm has changed installation path to /opt/rocm-{release}. Add detection
for that. Also support ROCM_PATH environment variable.
Details
- Reviewers
tra - Commits
- rG282bf9eaf7b1: [HIP] Fix ROCm detection
Diff Detail
Event Timeline
clang/lib/Driver/ToolChains/AMDGPU.cpp | ||
---|---|---|
271 | This will rank rocm-3.9 higher than rocm-3.10. I think you do need to extract and compare the version. |
clang/lib/Driver/ToolChains/AMDGPU.cpp | ||
---|---|---|
271 | Good catch. Will fix it. |
clang/lib/Driver/ToolChains/AMDGPU.cpp | ||
---|---|---|
269 | Sorry, my mistake. Two of them. I've overlooked that the version had dash in it, but we've actually been replacing an underscore. The code looks good now. |
You don't need StringRef here. VerStr.rfind() will do.