[clang] AMDGPU: Find device files even when ROCM_PATH is set (PR #177346)
Matthias Gehre via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 22 06:41:36 PST 2026
================
@@ -207,16 +211,15 @@ RocmInstallationDetector::getInstallationPathCandidates() {
// For candidate specified by --rocm-path we do not do strict check, i.e.,
// checking existence of HIP version file and device library files.
+ // These are added first as highest priority candidates, but we continue
+ // to add clang-relative paths to support cases where the compiler has its
+ // own device libraries (e.g., python wheels with bundled device libs).
----------------
mgehre-amd wrote:
Thanks for the review!
Would you like me to remove the comment? Or are you asking me change the search order so that ROCM_PATH is added to as last entry of ROCmSearchDirs instead of the first one?
https://github.com/llvm/llvm-project/pull/177346
More information about the cfe-commits
mailing list