|
1 | 1 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp \ |
2 | | -// RUN: --no-opaque-offload-linker -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \ |
| 2 | +// RUN: -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \ |
3 | 3 | // RUN: --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib/libomptarget-amdgpu-gfx803.bc \ |
4 | 4 | // RUN: --libomptarget-nvptx-bc-path=%S/Inputs/libomptarget/libomptarget-nvptx-test.bc %s 2>&1 \ |
5 | 5 | // RUN: | FileCheck %s |
|
12 | 12 | // CHECK: clang-linker-wrapper{{.*}} "-o" "a.out" |
13 | 13 |
|
14 | 14 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \ |
15 | | -// RUN: --no-opaque-offload-linker --offload-new-driver --offload-arch=sm_70 --offload-arch=gfx908:sramecc+:xnack- \ |
| 15 | +// RUN: --offload-new-driver --offload-arch=sm_70 --offload-arch=gfx908:sramecc+:xnack- \ |
16 | 16 | // RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-NVIDIA-AMDGPU |
17 | 17 |
|
18 | 18 | // CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[INPUT:.+]]"], output: "[[HOST_BC:.+]]" |
|
24 | 24 | // CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], output: "a.out" |
25 | 25 |
|
26 | 26 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp --offload-new-driver \ |
27 | | -// RUN: --no-opaque-offload-linker --offload-arch=sm_52 --offload-arch=sm_70 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARCH-BINDINGS |
| 27 | +// RUN: --offload-arch=sm_52 --offload-arch=sm_70 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARCH-BINDINGS |
28 | 28 |
|
29 | 29 | // CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[INPUT:.*]]"], output: "[[HOST_BC:.*]]" |
30 | 30 | // CHECK-ARCH-BINDINGS: "nvptx64-nvidia-cuda" - "clang", inputs: ["[[INPUT]]", "[[HOST_BC]]"], output: "[[DEVICE_BC_SM_52:.*]]" |
|
36 | 36 | // CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], output: "a.out" |
37 | 37 |
|
38 | 38 | // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \ |
39 | | -// RUN: --no-opaque-offload-linker --offload-arch=sm_70 --offload-arch=gfx908 --offload-arch=skylake \ |
| 39 | +// RUN: --offload-arch=sm_70 --offload-arch=gfx908 --offload-arch=skylake \ |
40 | 40 | // RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-FAILED |
41 | 41 |
|
42 | 42 | // CHECK-FAILED: error: failed to deduce triple for target architecture 'skylake'; specify the triple using '-fopenmp-targets' and '-Xopenmp-target' instead |
43 | 43 |
|
44 | 44 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \ |
45 | | -// RUN: --no-opaque-offload-linker --offload-arch=sm_70 --offload-arch=gfx908 -fno-openmp \ |
| 45 | +// RUN: --offload-arch=sm_70 --offload-arch=gfx908 -fno-openmp \ |
46 | 46 | // RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED |
47 | 47 |
|
48 | 48 | // CHECK-DISABLED-NOT: "nvptx64-nvidia-cuda" - "clang", |
0 commit comments