-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Reapply "[CUDA] Fix a couple of driver tests that really weren't bein… #94000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…g run" (llvm#93988)" This reverts commit 6416958. Fix bots by using different options.
@llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Paul T Robinson (pogo59) Changes…g run" (#93988)" This reverts commit 6416958. Full diff: https://github.com/llvm/llvm-project/pull/94000.diff 2 Files Affected:
diff --git a/clang/test/Driver/offloading-interoperability.c b/clang/test/Driver/offloading-interoperability.c
index 6f6daf31a392e..67e5ea26ede4d 100644
--- a/clang/test/Driver/offloading-interoperability.c
+++ b/clang/test/Driver/offloading-interoperability.c
@@ -1,10 +1,7 @@
-// REQUIRES: powerpc-registered-target
-// REQUIRES: nvptx-registered-target
-
//
// Verify that CUDA device commands do not get OpenMP flags.
//
-// RUN: not %clang -### -x cuda --target=powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
+// RUN: %clang -### -x cuda --target=powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -nocudainc -nocudalib -fopenmp=libomp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE
//
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: "-cc1" "-triple" "nvptx64-nvidia-cuda"
diff --git a/clang/test/Driver/openmp-offload-gpu.c b/clang/test/Driver/openmp-offload-gpu.c
index d21db7019a1aa..0b98aaf6ba53c 100644
--- a/clang/test/Driver/openmp-offload-gpu.c
+++ b/clang/test/Driver/openmp-offload-gpu.c
@@ -2,11 +2,6 @@
/// Perform several driver tests for OpenMP offloading
///
-// REQUIRES: x86-registered-target
-// REQUIRES: powerpc-registered-target
-// REQUIRES: nvptx-registered-target
-// REQUIRES: amdgpu-registered-target
-
/// ###########################################################################
/// Check -Xopenmp-target uses one of the archs provided when several archs are used.
@@ -305,6 +300,7 @@
// CHECK-EMIT-LLVM-IR-BC: "-cc1"{{.*}}"-triple" "nvptx64-nvidia-cuda"{{.*}}"-emit-llvm-bc"
// RUN: %clang -### -fopenmp=libomp --offload-arch=sm_89 \
+// RUN: --no-cuda-version-check \
// RUN: -nogpulib %s -o openmp-offload-gpu 2>&1 \
// RUN: | FileCheck -check-prefix=DRIVER_EMBEDDING %s
|
I've been having this fail in my local build for a few days now:
I've got an AMD epyc machine, so I don't think it is a machine problem, but also the output doesn't really tell me anything? |
Yeah lit is not so good at this; it means clang exited with an error, but lit is somehow eating the error message. @erichkeane If you could run that clang command manually and report the output, that would be extremely helpful. |
Bizarrely if I run the piped version, I get no error:
Not piped version I get:
|
If you add |
Yep! I added it to the 'run' line as well, and adding it there fixes the test on my machine. So I suspect that would be the fix? |
See llvm#94000 for a report of a downstream failure, this fixes it.
See #94000 for a report of a downstream failure, this fixes it.
Let's hope so! Done. |
…g run" (#93988)"
This reverts commit 6416958.
Fix bots by using different options.