Skip to content

Commit 3f9c9ac

Browse files
authored
[Offload] Add the right paths to the CUDA lit tests (#102997)
1 parent 70cf58e commit 3f9c9ac

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

offload/test/offloading/CUDA/basic_launch.cu

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t
1+
// clang-format off
2+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t
23
// RUN: %t | %fcheck-generic
3-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
4+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
45
// RUN: %t | %fcheck-generic
6+
// clang-format on
57

68
// UNSUPPORTED: aarch64-unknown-linux-gnu
79
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

offload/test/offloading/CUDA/basic_launch_blocks_and_threads.cu

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t
1+
// clang-format off
2+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t
23
// RUN: %t | %fcheck-generic
3-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
4+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
45
// RUN: %t | %fcheck-generic
6+
// clang-format on
57

68
// UNSUPPORTED: aarch64-unknown-linux-gnu
79
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

offload/test/offloading/CUDA/basic_launch_multi_arg.cu

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t
1+
// clang-format off
2+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t
23
// RUN: %t | %fcheck-generic
3-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
4+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t -fopenmp
45
// RUN: %t | %fcheck-generic
6+
// clang-format on
57

68
// UNSUPPORTED: aarch64-unknown-linux-gnu
79
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

offload/test/offloading/CUDA/launch_tu.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// clang-format off
2-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %s -o %t.launch_tu.o -c
3-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native -x cuda %S/kernel_tu.cu.inc -o %t.kernel_tu.o -c
4-
// RUN: %clang++ -foffload-via-llvm --offload-arch=native %t.launch_tu.o %t.kernel_tu.o -o %t
2+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %s -o %t.launch_tu.o -c
3+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native -x cuda %S/kernel_tu.cu.inc -o %t.kernel_tu.o -c
4+
// RUN: %clang++ %flags -foffload-via-llvm --offload-arch=native %t.launch_tu.o %t.kernel_tu.o -o %t
55
// RUN: %t | %fcheck-generic
66
// clang-format on
77

0 commit comments

Comments
 (0)