|
3 | 3 | // UNSUPPORTED: system-windows
|
4 | 4 |
|
5 | 5 | // RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
|
6 |
| -// RUN: -fsycl-targets=nvptx64-nvidia-nvcl --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 6 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
7 | 7 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \
|
8 |
| -// RUN: | FileCheck --check-prefix=ERR %s |
9 |
| -// ERR: cannot find 'libspirv-nvptx64--nvidiacl.bc' |
| 8 | +// RUN: | FileCheck --check-prefix=ERR-CUDA %s |
| 9 | +// ERR-CUDA: cannot find 'remangled-l64-signed_char.libspirv-nvptx64--nvidiacl.bc' |
| 10 | + |
| 11 | +// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-windows-msvc -fsycl \ |
| 12 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 13 | +// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \ |
| 14 | +// RUN: | FileCheck --check-prefix=ERR-CUDA-WIN %s |
| 15 | +// ERR-CUDA-WIN: cannot find 'remangled-l32-signed_char.libspirv-nvptx64--nvidiacl.bc' |
| 16 | + |
| 17 | +// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \ |
| 18 | +// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 \ |
| 19 | +// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \ |
| 20 | +// RUN: | FileCheck --check-prefix=ERR-HIP %s |
| 21 | +// ERR-HIP: cannot find 'remangled-l64-signed_char.libspirv-amdgcn--amdhsa.bc' |
| 22 | + |
| 23 | +// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \ |
| 24 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 25 | +// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc -fno-sycl-libspirv %s 2>&1 \ |
| 26 | +// RUN: | FileCheck --check-prefix=OK-CUDA %s |
| 27 | +// OK-CUDA-NOT: cannot find suitable 'remangled-l64-signed_char.libspirv-nvptx64--nvidiacl.bc' |
10 | 28 |
|
11 | 29 | // RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
|
12 |
| -// RUN: -fsycl-targets=nvptx64-nvidia-nvcl --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 30 | +// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 \ |
13 | 31 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc -fno-sycl-libspirv %s 2>&1 \
|
14 |
| -// RUN: | FileCheck --check-prefix=OK %s |
15 |
| -// OK-NOT: cannot find 'libspirv-nvptx64--nvidiacl.bc' |
| 32 | +// RUN: | FileCheck --check-prefix=OK-HIP %s |
| 33 | +// OK-HIP-NOT: cannot find 'remangled-l64-signed_char.libspirv-amdgcn--amdhsa.bc' |
0 commit comments