|
6 | 6 | // RUN: cp %S/Inputs/amdgpu-arch/amdgpu_arch_gfx906 %t/
|
7 | 7 | // RUN: cp %S/Inputs/nvptx-arch/nvptx_arch_fail %t/
|
8 | 8 | // RUN: cp %S/Inputs/nvptx-arch/nvptx_arch_sm_70 %t/
|
| 9 | +// RUN: cp %S/Inputs/offload-arch/offload_arch_sm_70_gfx906 %t/ |
9 | 10 | // RUN: echo '#!/bin/sh' > %t/amdgpu_arch_empty
|
10 | 11 | // RUN: chmod +x %t/amdgpu_arch_fail
|
11 | 12 | // RUN: chmod +x %t/amdgpu_arch_gfx906
|
|
14 | 15 | // RUN: chmod +x %t/nvptx_arch_fail
|
15 | 16 | // RUN: chmod +x %t/nvptx_arch_sm_70
|
16 | 17 | // RUN: chmod +x %t/nvptx_arch_empty
|
| 18 | +// RUN: chmod +x %t/offload_arch_sm_70_gfx906 |
17 | 19 |
|
18 | 20 | // case when nvptx-arch and amdgpu-arch return nothing or fails
|
19 | 21 | // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -nogpulib -fopenmp=libomp --offload-arch=native \
|
|
41 | 43 |
|
42 | 44 | // case when nvptx-arch succeeds.
|
43 | 45 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpulib -fopenmp=libomp --offload-arch=native \
|
44 |
| -// RUN: --nvptx-arch-tool=%t/nvptx_arch_sm_70 --amdgpu-arch-tool=%t/amdgpu_arch_fail %s 2>&1 \ |
| 46 | +// RUN: --amdgpu-arch-tool=%t/amdgpu_arch_fail --nvptx-arch-tool=%t/nvptx_arch_sm_70 %s 2>&1 \ |
45 | 47 | // RUN: | FileCheck %s --check-prefix=ARCH-SM_70
|
46 | 48 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpulib -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
47 |
| -// RUN: --nvptx-arch-tool=%t/nvptx_arch_sm_70 --amdgpu-arch-tool=%t/amdgpu_arch_fail %s 2>&1 \ |
| 49 | +// RUN: --amdgpu-arch-tool=%t/amdgpu_arch_fail --nvptx-arch-tool=%t/nvptx_arch_sm_70 %s 2>&1 \ |
48 | 50 | // RUN: | FileCheck %s --check-prefix=ARCH-SM_70
|
49 | 51 | // ARCH-SM_70: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}}"-target-cpu" "sm_70"
|
50 | 52 |
|
51 | 53 | // case when both nvptx-arch and amdgpu-arch succeed.
|
52 | 54 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpulib -fopenmp=libomp --offload-arch=native \
|
53 |
| -// RUN: --nvptx-arch-tool=%t/nvptx_arch_sm_70 --amdgpu-arch-tool=%t/amdgpu_arch_gfx906 %s 2>&1 \ |
| 55 | +// RUN: --offload-arch-tool=%t/offload_arch_sm_70_gfx906 %s 2>&1 \ |
54 | 56 | // RUN: | FileCheck %s --check-prefix=ARCH-SM_70-GFX906
|
55 | 57 | // ARCH-SM_70-GFX906: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "gfx906"
|
56 | 58 | // ARCH-SM_70-GFX906: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}}"-target-cpu" "sm_70"
|
57 | 59 |
|
58 | 60 | // case when both nvptx-arch and amdgpu-arch succeed with other archs.
|
59 | 61 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpulib -fopenmp=libomp --offload-arch=native,sm_75,gfx1030 \
|
60 |
| -// RUN: --nvptx-arch-tool=%t/nvptx_arch_sm_70 --amdgpu-arch-tool=%t/amdgpu_arch_gfx906 %s 2>&1 \ |
| 62 | +// RUN: --offload-arch-tool=%t/offload_arch_sm_70_gfx906 %s 2>&1 \ |
61 | 63 | // RUN: | FileCheck %s --check-prefix=ARCH-MULTIPLE
|
62 | 64 | // ARCH-MULTIPLE: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "gfx1030"
|
63 | 65 | // ARCH-MULTIPLE: "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-target-cpu" "gfx906"
|
|
0 commit comments