[clang] Reland "[HIP] Use original file path for CUID" (#108771) (PR #111885)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 08:38:03 PST 2025


================
@@ -1,13 +1,15 @@
 // Check CUID generated by hash.
 // The same CUID is generated for the same file with the same options.
 
+// RUN: cd %S
+
 // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
 // RUN:   --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
-// RUN:   %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
----------------
yxsamliu wrote:

fixed by creating the relative path under the running directory and copying the source files there

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


More information about the cfe-commits mailing list