[clang] Reland "[HIP] Use original file path for CUID" (#108771) (PR #111885)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 10:42:56 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
----------------
Artem-B wrote:
This does not change the fact that "Inputs/hip_multiple_inputs/a.cu" simply may not be there when the test runs.
E.g. we're executing the tests remotely and the source tree lives in a completely different location compared to the tests. Without "%S" pointing lit there clang will not be able to find the file.
https://github.com/llvm/llvm-project/pull/111885
More information about the cfe-commits
mailing list