[clang] [Driver][AMDGPU] Look for hipstdpar/rocThrust headers under include/jipccl (PR #246125)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 12:55:22 PST 2026
================
@@ -563,13 +563,20 @@ void RocmInstallationDetector::AddHIPIncludeArgs(const ArgList &DriverArgs,
StringRef Inc = getIncludePath();
auto &FS = D.getVFS();
+ // Prefer the newer include/hipccl/thrust layout over include/thrust.
+ SmallString<128> HipcclInc(Inc);
+ llvm::sys::path::append(HipcclInc, "hipccl");
+ const bool UseHipccl =
+ !HasRocThrustLibrary && FS.exists(HipcclInc + "/thrust");
----------------
yxsamliu wrote:
Could we check for `hipstdpar_lib.hpp` before choosing the new layout? If `hipccl/thrust` exists without that header, Clang should still try the legacy path.
https://github.com/llvm/llvm-project/pull/246125
More information about the cfe-commits
mailing list