[clang] [Driver][AMDGPU] Search include/hipccl for hipstdpar/rocThrust headers (PR #246125)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 16:27:59 PST 2026


================
@@ -60,3 +60,12 @@
 // RUN:   -flto -nogpulib %s 2>&1 | \
 // RUN:   FileCheck --check-prefix=NO-HIPSTDPAR %s
 // NO-HIPSTDPAR-NOT: "-amdgpu-enable-hipstdpar"
+
+// Check that <rocm>/include/hipccl is searched before <rocm>/include, and that
+// its hipstdpar header directory is searched before the legacy one.
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu --hipstdpar \
+// RUN:   --rocm-path=%S/Inputs/rocm -nogpulib --compile %s 2>&1 | \
+// RUN:   FileCheck --check-prefix=HIPSTDPAR-HIPCCL %s
+// HIPSTDPAR-HIPCCL: "-idirafter" "[[INC:[^"]*Inputs[/\\]rocm[/\\]include]]{{/|\\\\}}hipccl" "-idirafter" "[[INC]]"
----------------
yxsamliu wrote:

Could this check accept two backslashes before `include`? Windows `-###` prints `\\` there, and the pattern only matches one.

https://github.com/llvm/llvm-project/pull/246125


More information about the cfe-commits mailing list