Skip to content

Commit cb6f657

Browse files
committed
[CUDA][HIP][NFC] Precommit new driver changes to tests
Summary: A lot of these tests implicitly rely on `--no-offload-new-driver` a patch in the future will change the default so this patch makes it explicit in locations where it matters.
1 parent 23c397c commit cb6f657

29 files changed

+197
-193
lines changed

clang/test/Driver/cuda-bad-arch.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
// RUN: | FileCheck -check-prefix OK %s
3131

3232
// We don't allow using NVPTX/AMDGCN for host compilation.
33-
// RUN: not %clang -### --cuda-host-only --target=nvptx-nvidia-cuda -nogpulib -nogpuinc -c %s 2>&1 \
33+
// RUN: not %clang -### --no-offload-new-driver --cuda-host-only --target=nvptx-nvidia-cuda -nogpulib -nogpuinc -c %s 2>&1 \
3434
// RUN: | FileCheck -check-prefix HOST_NVPTX %s
35-
// RUN: not %clang -### --cuda-host-only --target=amdgcn-amd-amdhsa -nogpulib -nogpuinc -c %s 2>&1 \
35+
// RUN: not %clang -### --no-offload-new-driver --cuda-host-only --target=amdgcn-amd-amdhsa -nogpulib -nogpuinc -c %s 2>&1 \
3636
// RUN: | FileCheck -check-prefix HOST_AMDGCN %s
3737

3838
// OK-NOT: error: Unsupported CUDA gpu architecture

clang/test/Driver/cuda-external-tools.cu

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,OPT3 %s
2626
// Generating relocatable device code
2727
// RUN: %clang -### --target=x86_64-linux-gnu -fgpu-rdc -c %s 2>&1 \
28-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
28+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
2929
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,RDC %s
3030

3131
// With debugging enabled, ptxas should be run with with no ptxas optimizations.
@@ -59,7 +59,7 @@
5959
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35 %s
6060
// Separate compilation targeting sm_35.
6161
// RUN: %clang -### --target=x86_64-linux-gnu --cuda-gpu-arch=sm_35 -fgpu-rdc -c %s 2>&1 \
62-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
62+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
6363
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,RDC %s
6464

6565
// 32-bit compile.
@@ -68,7 +68,7 @@
6868
// RUN: | FileCheck -check-prefixes=CHECK,ARCH32,SM35 %s
6969
// 32-bit compile when generating relocatable device code.
7070
// RUN: %clang -### --target=i386-linux-gnu -fgpu-rdc -c %s 2>&1 \
71-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
71+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
7272
// RUN: | FileCheck -check-prefixes=CHECK,ARCH32,SM35,RDC %s
7373

7474
// Compile with -fintegrated-as. This should still cause us to invoke ptxas.
@@ -77,7 +77,7 @@
7777
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,OPT0 %s
7878
// Check that we still pass -c when generating relocatable device code.
7979
// RUN: %clang -### --target=x86_64-linux-gnu -fintegrated-as -fgpu-rdc -c %s 2>&1 \
80-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
80+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
8181
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,RDC %s
8282

8383
// Check -Xcuda-ptxas and -Xcuda-fatbinary
@@ -99,13 +99,13 @@
9999

100100
// Check relocatable device code generation on MacOS.
101101
// RUN: %clang -### --target=x86_64-apple-macosx -O0 -fgpu-rdc -c %s 2>&1 \
102-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
102+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
103103
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,RDC %s
104104
// RUN: %clang -### --target=x86_64-apple-macosx --cuda-gpu-arch=sm_35 -fgpu-rdc -c %s 2>&1 \
105-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
105+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
106106
// RUN: | FileCheck -check-prefixes=CHECK,ARCH64,SM35,RDC %s
107107
// RUN: %clang -### --target=i386-apple-macosx -fgpu-rdc -c %s 2>&1 \
108-
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
108+
// RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
109109
// RUN: | FileCheck -check-prefixes=CHECK,ARCH32,SM35,RDC %s
110110

111111
// Check that CLANG forwards the -v flag to PTXAS.

clang/test/Driver/cuda-phases.cu

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212
// Test CUDA NVPTX phases.
1313
// 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 \
1515
// RUN: | FileCheck -check-prefixes=BIN %s
1616
//
1717
// BIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
@@ -34,7 +34,7 @@
3434
// Test single gpu architecture up to the assemble phase.
3535
//
3636
// 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 \
3838
// RUN: | FileCheck -check-prefixes=ASM %s
3939
// ASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]])
4040
// ASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]])
@@ -50,7 +50,7 @@
5050
// Test two gpu architectures with complete compilation.
5151
//
5252
// 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 \
5454
// RUN: | FileCheck -check-prefixes=BIN2 %s
5555
// BIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
5656
// BIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]])
@@ -79,7 +79,7 @@
7979
// Test two gpu architecturess up to the assemble phase.
8080
//
8181
// 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 \
8383
// RUN: | FileCheck -check-prefixes=ASM2 %s
8484
// ASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH1:sm_30]])
8585
// ASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH1]])
@@ -101,7 +101,7 @@
101101
// compilation mode.
102102
//
103103
// 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 \
105105
// RUN: | FileCheck -check-prefixes=HBIN %s
106106
// HBIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
107107
// HBIN-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]])
@@ -115,7 +115,7 @@
115115
// compilation mode.
116116
//
117117
// 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 \
119119
// RUN: | FileCheck -check-prefixes=HASM %s
120120
// HASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
121121
// HASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]])
@@ -128,7 +128,7 @@
128128
// compilation mode.
129129
//
130130
// 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 \
132132
// RUN: | FileCheck -check-prefixes=HBIN2 %s
133133
// HBIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
134134
// HBIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]])
@@ -143,7 +143,7 @@
143143
// compilation mode.
144144
//
145145
// 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 \
147147
// RUN: 2>&1 | FileCheck -check-prefixes=HASM2 %s
148148
// HASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (host-[[T]])
149149
// HASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (host-[[T]])
@@ -156,7 +156,7 @@
156156
// compilation mode.
157157
//
158158
// 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 \
160160
// RUN: | FileCheck -check-prefixes=DBIN %s
161161
// DBIN-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]])
162162
// DBIN-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]])
@@ -170,7 +170,7 @@
170170
// compilation mode.
171171
//
172172
// 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 \
174174
// RUN: | FileCheck -check-prefixes=DASM %s
175175
// DASM-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]])
176176
// DASM-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]])
@@ -184,7 +184,7 @@
184184
// compilation mode.
185185
//
186186
// 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 \
188188
// RUN: | FileCheck -check-prefixes=DBIN2 %s
189189
// DBIN2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]])
190190
// DBIN2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]])
@@ -204,7 +204,7 @@
204204
// compilation mode.
205205
//
206206
// 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 \
208208
// RUN: 2>&1 | FileCheck -check-prefixes=DASM2 %s
209209
// DASM2-DAG: [[P0:[0-9]+]]: input, "{{.*}}cuda-phases.cu", [[T:cuda]], (device-[[T]], [[ARCH:sm_30]])
210210
// DASM2-DAG: [[P1:[0-9]+]]: preprocessor, {[[P0]]}, [[T]]-cpp-output, (device-[[T]], [[ARCH]])

clang/test/Driver/hip-binding.hip

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
// RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu \
55
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
6-
// RUN: -c 2>&1 | FileCheck -check-prefix=NRDCS %s
6+
// RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s
77
// RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu --offload-new-driver \
88
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
9-
// RUN: -c 2>&1 | FileCheck -check-prefix=NRDCS %s
9+
// RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s
1010
// NRDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[OBJ1:.*o]]"
1111
// NRDCS: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ1]]"], output: "[[IMG1:.*]]"
1212
// NRDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[OBJ2:.*o]]"
@@ -16,7 +16,7 @@
1616

1717
// RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu \
1818
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
19-
// RUN: -c -fgpu-rdc 2>&1 | FileCheck -check-prefix=RDCS %s
19+
// RUN: --no-offload-new-driver -c -fgpu-rdc 2>&1 | FileCheck -check-prefix=RDCS %s
2020
// RDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[BC1:.*bc]]"
2121
// RDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[BC2:.*bc]]"
2222
// RDCS: # "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[IN]]"], output: "[[HOSTOBJ:.*o]]"
@@ -32,7 +32,7 @@
3232

3333
// RUN: touch %t.o
3434
// RUN: %clang --hip-link -ccc-print-bindings --target=x86_64-linux-gnu \
35-
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 -fgpu-rdc %t.o\
35+
// RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 -fgpu-rdc %t.o\
3636
// RUN: 2>&1 | FileCheck %s
3737

3838
// CHECK: # "x86_64-unknown-linux-gnu" - "offload bundler", inputs: ["[[IN:.*o]]"], outputs: ["[[HOSTOBJ:.*o]]", "{{.*o}}", "{{.*o}}"]
@@ -46,7 +46,7 @@
4646
// CHECK: # "x86_64-unknown-linux-gnu" - "GNU::Linker", inputs: ["[[HOSTOBJ]]", "[[FATBINOBJ]]"], output: "a.out"
4747

4848
// RUN: %clang --hip-link -ccc-print-bindings --target=x86_64-linux-gnu \
49-
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %t.o\
49+
// RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %t.o\
5050
// RUN: 2>&1 | FileCheck -check-prefix=NORDC %s
5151

5252
// NORDC-NOT: offload bundler

clang/test/Driver/hip-cuid-hash.hip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// Check CUID generated by hash.
55
// The same CUID is generated for the same file with the same options.
66

7-
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu \
7+
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
88
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
99
// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
1010

11-
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu \
11+
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
1212
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
1313
// RUN: %S/Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
1414

@@ -17,11 +17,11 @@
1717
// Check CUID generated by hash.
1818
// Different CUID's are generated for the same file with different options.
1919

20-
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=1 \
20+
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=1 --no-offload-new-driver \
2121
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
2222
// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
2323

24-
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=2 \
24+
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=2 --no-offload-new-driver \
2525
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
2626
// RUN: %S/Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
2727

clang/test/Driver/hip-cuid.hip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// RUN: not %clang -### -x hip \
77
// RUN: --target=x86_64-unknown-linux-gnu \
8+
// RUN: --no-offload-new-driver \
89
// RUN: --offload-arch=gfx900 \
910
// RUN: --offload-arch=gfx906 \
1011
// RUN: -c -nogpuinc -nogpulib -fuse-cuid=invalid \
@@ -16,6 +17,7 @@
1617

1718
// RUN: %clang -### -x hip \
1819
// RUN: --target=x86_64-unknown-linux-gnu \
20+
// RUN: --no-offload-new-driver \
1921
// RUN: --offload-arch=gfx900 \
2022
// RUN: --offload-arch=gfx906 \
2123
// RUN: -c -nogpuinc -nogpulib -fuse-cuid=random \
@@ -27,6 +29,7 @@
2729

2830
// RUN: %clang -### -x hip \
2931
// RUN: --target=x86_64-unknown-linux-gnu \
32+
// RUN: --no-offload-new-driver \
3033
// RUN: --offload-arch=gfx900 \
3134
// RUN: --offload-arch=gfx906 \
3235
// RUN: -c -nogpuinc -nogpulib -cuid=xyz_123 \
@@ -38,6 +41,7 @@
3841

3942
// RUN: %clang -### -x hip \
4043
// RUN: --target=x86_64-unknown-linux-gnu \
44+
// RUN: --no-offload-new-driver \
4145
// RUN: --offload-arch=gfx900 \
4246
// RUN: --offload-arch=gfx906 \
4347
// RUN: -c -nogpuinc -nogpulib -fuse-cuid=random -cuid=xyz_123 \
@@ -49,6 +53,7 @@
4953

5054
// RUN: %clang -### -x hip \
5155
// RUN: --target=x86_64-unknown-linux-gnu \
56+
// RUN: --no-offload-new-driver \
5257
// RUN: --offload-arch=gfx900 \
5358
// RUN: --offload-arch=gfx906 \
5459
// RUN: -c -nogpuinc -nogpulib -fuse-cuid=hash \

clang/test/Driver/hip-dependent-options.hip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %clang -### --target=x86_64-linux-gnu \
1+
// RUN: not %clang -### --target=x86_64-linux-gnu --no-offload-new-driver \
22
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \
33
// RUN: -c -fhip-emit-relocatable -nogpuinc -nogpulib --cuda-device-only -fgpu-rdc \
44
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
@@ -7,7 +7,7 @@
77

88
// RELOCRDC: error: option '-fhip-emit-relocatable' cannot be specified with '-fgpu-rdc'
99

10-
// RUN: not %clang -### --target=x86_64-linux-gnu \
10+
// RUN: not %clang -### --target=x86_64-linux-gnu --no-offload-new-driver \
1111
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \
1212
// RUN: -c -fhip-emit-relocatable -nogpuinc -nogpulib \
1313
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \

0 commit comments

Comments
 (0)