|
11 | 11 | // |
12 | 12 | // Test CUDA NVPTX phases. |
13 | 13 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
14 | | -// RUN: --cuda-gpu-arch=sm_30 %s 2>&1 \ |
| 14 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s 2>&1 \ |
15 | 15 | // RUN: | FileCheck -check-prefixes=BIN %s |
16 | 16 | // |
17 | 17 | // BIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
|
34 | 34 | // Test single gpu architecture up to the assemble phase. |
35 | 35 | // |
36 | 36 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
37 | | -// RUN: --cuda-gpu-arch=sm_30 %s -S 2>&1 \ |
| 37 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s -S 2>&1 \ |
38 | 38 | // RUN: | FileCheck -check-prefixes=ASM %s |
39 | 39 | // ASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]]) |
40 | 40 | // ASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]]) |
|
50 | 50 | // Test two gpu architectures with complete compilation. |
51 | 51 | // |
52 | 52 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
53 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s 2>&1 \ |
| 53 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s 2>&1 \ |
54 | 54 | // RUN: | FileCheck -check-prefixes=BIN2 %s |
55 | 55 | // BIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
56 | 56 | // BIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]]) |
|
79 | 79 | // Test two gpu architecturess up to the assemble phase. |
80 | 80 | // |
81 | 81 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
82 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s -S 2>&1 \ |
| 82 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s -S 2>&1 \ |
83 | 83 | // RUN: | FileCheck -check-prefixes=ASM2 %s |
84 | 84 | // ASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH1:sm_30]]) |
85 | 85 | // ASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH1]]) |
|
101 | 101 | // compilation mode. |
102 | 102 | // |
103 | 103 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
104 | | -// RUN: --cuda-gpu-arch=sm_30 %s --cuda-host-only 2>&1 \ |
| 104 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s --cuda-host-only 2>&1 \ |
105 | 105 | // RUN: | FileCheck -check-prefixes=HBIN %s |
106 | 106 | // HBIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
107 | 107 | // HBIN-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]]) |
|
115 | 115 | // compilation mode. |
116 | 116 | // |
117 | 117 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
118 | | -// RUN: --cuda-gpu-arch=sm_30 %s --cuda-host-only -S 2>&1 \ |
| 118 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s --cuda-host-only -S 2>&1 \ |
119 | 119 | // RUN: | FileCheck -check-prefixes=HASM %s |
120 | 120 | // HASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
121 | 121 | // HASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]]) |
|
128 | 128 | // compilation mode. |
129 | 129 | // |
130 | 130 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
131 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-host-only 2>&1 \ |
| 131 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-host-only 2>&1 \ |
132 | 132 | // RUN: | FileCheck -check-prefixes=HBIN2 %s |
133 | 133 | // HBIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
134 | 134 | // HBIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]]) |
|
143 | 143 | // compilation mode. |
144 | 144 | // |
145 | 145 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
146 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-host-only -S \ |
| 146 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-host-only -S \ |
147 | 147 | // RUN: 2>&1 | FileCheck -check-prefixes=HASM2 %s |
148 | 148 | // HASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]]) |
149 | 149 | // HASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]]) |
|
156 | 156 | // compilation mode. |
157 | 157 | // |
158 | 158 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
159 | | -// RUN: --cuda-gpu-arch=sm_30 %s --cuda-device-only 2>&1 \ |
| 159 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s --cuda-device-only 2>&1 \ |
160 | 160 | // RUN: | FileCheck -check-prefixes=DBIN %s |
161 | 161 | // DBIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]]) |
162 | 162 | // DBIN-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]]) |
|
170 | 170 | // compilation mode. |
171 | 171 | // |
172 | 172 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
173 | | -// RUN: --cuda-gpu-arch=sm_30 %s --cuda-device-only -S 2>&1 \ |
| 173 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 %s --cuda-device-only -S 2>&1 \ |
174 | 174 | // RUN: | FileCheck -check-prefixes=DASM %s |
175 | 175 | // DASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]]) |
176 | 176 | // DASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]]) |
|
184 | 184 | // compilation mode. |
185 | 185 | // |
186 | 186 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
187 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only 2>&1 \ |
| 187 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only 2>&1 \ |
188 | 188 | // RUN: | FileCheck -check-prefixes=DBIN2 %s |
189 | 189 | // DBIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]]) |
190 | 190 | // DBIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]]) |
|
204 | 204 | // compilation mode. |
205 | 205 | // |
206 | 206 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-phases \ |
207 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only -S \ |
| 207 | +// RUN: --no-offload-new-driver --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only -S \ |
208 | 208 | // RUN: 2>&1 | FileCheck -check-prefixes=DASM2 %s |
209 | 209 | // DASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]]) |
210 | 210 | // DASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]]) |
|
0 commit comments