We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7773acc commit 2f3002dCopy full SHA for 2f3002d
clang/test/Driver/offload-Xarch.c
@@ -37,3 +37,8 @@
37
// RUN: -Xarch_sm_52 --offload-arch=sm_52 -S -nogpulib -nogpuinc -### 2>&1 \
38
// RUN: | FileCheck -check-prefix=SPECIFIC %s
39
// SPECIFIC: "-cc1" "-triple" "nvptx64-nvidia-cuda" {{.*}}"-target-cpu" "sm_52"
40
+
41
+// RUN: %clang -x cuda %s -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
42
+// RUN: -Xarch_sm_51 --offload-arch=sm_52 -S -nogpulib -nogpuinc -### 2>&1 \
43
+// RUN: | FileCheck -check-prefix=SPECIFIC-WARN %s
44
+// SPECIFIC-WARN: warning: argument unused during compilation: '-Xarch_sm_51 --offload-arch=sm_52'
0 commit comments