|
6 | 6 | // OFFLOAD-NEW-DRIVER: 1: append-footer, {0}, c++, (host-sycl)
|
7 | 7 | // OFFLOAD-NEW-DRIVER: 2: preprocessor, {1}, c++-cpp-output, (host-sycl)
|
8 | 8 | // OFFLOAD-NEW-DRIVER: 3: compiler, {2}, ir, (host-sycl)
|
9 |
| -// OFFLOAD-NEW-DRIVER: 4: input, "[[INPUT]]", c++, (device-sycl) |
10 |
| -// OFFLOAD-NEW-DRIVER: 5: preprocessor, {4}, c++-cpp-output, (device-sycl) |
11 |
| -// OFFLOAD-NEW-DRIVER: 6: compiler, {5}, ir, (device-sycl) |
12 |
| -// OFFLOAD-NEW-DRIVER: 7: backend, {6}, ir, (device-sycl) |
13 |
| -// OFFLOAD-NEW-DRIVER: 8: offload, "device-sycl (nvptx64-nvidia-cuda)" {7}, ir |
| 9 | +// OFFLOAD-NEW-DRIVER: 4: input, "[[INPUT]]", c++, (device-sycl, sm_50) |
| 10 | +// OFFLOAD-NEW-DRIVER: 5: preprocessor, {4}, c++-cpp-output, (device-sycl, sm_50) |
| 11 | +// OFFLOAD-NEW-DRIVER: 6: compiler, {5}, ir, (device-sycl, sm_50) |
| 12 | +// OFFLOAD-NEW-DRIVER: 7: backend, {6}, ir, (device-sycl, sm_50) |
| 13 | +// OFFLOAD-NEW-DRIVER: 8: offload, "device-sycl (nvptx64-nvidia-cuda:sm_50)" {7}, ir |
14 | 14 | // OFFLOAD-NEW-DRIVER: 9: input, "[[INPUT]]", c++, (device-sycl)
|
15 | 15 | // OFFLOAD-NEW-DRIVER: 10: preprocessor, {9}, c++-cpp-output, (device-sycl)
|
16 | 16 | // OFFLOAD-NEW-DRIVER: 11: compiler, {10}, ir, (device-sycl)
|
|
173 | 173 | // WRAPPER_OPTIONS_BACKEND_AOT: clang-linker-wrapper{{.*}} "--host-triple=x86_64-unknown-linux-gnu"
|
174 | 174 | // WRAPPER_OPTIONS_BACKEND_AOT-SAME: "--gpu-tool-arg={{.*}}-backend-gpu-opt"
|
175 | 175 | // WRAPPER_OPTIONS_BACKEND_AOT-SAME: "--cpu-tool-arg={{.*}}-backend-cpu-opt"
|
| 176 | + |
| 177 | +/// Verify arch settings for nvptx and amdgcn targets |
| 178 | +// RUN: %clangxx -fsycl -### -fsycl-targets=amdgcn-amd-gpu -fno-sycl-libspirv \ |
| 179 | +// RUN: -nocudalib --offload-new-driver \ |
| 180 | +// RUN: -Xsycl-target-backend=amdgcn-amd-gpu --offload-arch=gfx600 \ |
| 181 | +// RUN: %s 2>&1 \ |
| 182 | +// RUN: | FileCheck -check-prefix AMD_ARCH %s |
| 183 | +// AMD_ARCH: clang-offload-packager{{.*}} "--image=file={{.*}},triple=amdgcn-amd-gpu,arch=gfx600,kind=sycl,compile-opts=--offload-arch=gfx600" |
| 184 | + |
| 185 | +// RUN: %clangxx -fsycl -### -fsycl-targets=nvptx64-nvidia-cuda \ |
| 186 | +// RUN: -fno-sycl-libspirv -nocudalib --offload-new-driver %s 2>&1 \ |
| 187 | +// RUN: | FileCheck -check-prefix NVPTX_DEF_ARCH %s |
| 188 | +// NVPTX_DEF_ARCH: clang-offload-packager{{.*}} "--image=file={{.*}},triple=nvptx64-nvidia-cuda,arch=sm_50,kind=sycl" |
0 commit comments