[clang] [Driver] Fix a CUDA test (PR #94258)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 3 10:09:24 PDT 2024


https://github.com/pogo59 created https://github.com/llvm/llvm-project/pull/94258

See #94000 for a report of a downstream failure, this fixes it.

>From 21fea52ae628f1105ea562b77f7987f87908d948 Mon Sep 17 00:00:00 2001
From: Paul Robinson <paul.robinson at sony.com>
Date: Mon, 3 Jun 2024 10:08:42 -0700
Subject: [PATCH] [Driver] Fix a CUDA test

See #94000 for a report of a downstream failure, this fixes it.
---
 clang/test/Driver/offloading-interoperability.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/Driver/offloading-interoperability.c b/clang/test/Driver/offloading-interoperability.c
index 67e5ea26ede4d..f4d980e5fa5ce 100644
--- a/clang/test/Driver/offloading-interoperability.c
+++ b/clang/test/Driver/offloading-interoperability.c
@@ -1,7 +1,7 @@
 //
 // Verify that CUDA device commands do not get OpenMP flags.
 //
-// RUN: %clang -### -x cuda --target=powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -nocudainc -nocudalib -fopenmp=libomp %s 2>&1 \
+// RUN: %clang -### -x cuda --target=powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -nocudainc -nocudalib --no-cuda-version-check -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"



More information about the cfe-commits mailing list