|
34 | 34 | // CHK-ACTIONS-WIN: clang-offload-wrapper"{{.*}} "-host=x86_64-pc-windows-msvc" "-target=nvptx64" "-kind=sycl"{{.*}}
|
35 | 35 |
|
36 | 36 | /// Check phases w/out specifying a compute capability.
|
37 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \ |
| 37 | +// RUN: %clangxx -ccc-print-phases --sysroot=%S/Inputs/SYCL -std=c++11 \ |
| 38 | +// RUN: -target x86_64-unknown-linux-gnu -fsycl \ |
38 | 39 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
|
| 40 | +// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/lib/nvidiacl \ |
| 41 | +// RUN: --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \ |
39 | 42 | // RUN: | FileCheck -check-prefix=CHK-PHASES-NO-CC %s
|
40 | 43 | //
|
41 | 44 | // TODO: Enable for clang_cl once device lib linking works for clang_cl
|
|
106 | 109 | // CHK-PHASES-NO-CC: 63: input, "{{.*}}libsycl-itt-stubs.o", object
|
107 | 110 | // CHK-PHASES-NO-CC: 64: clang-offload-unbundler, {63}, object
|
108 | 111 | // CHK-PHASES-NO-CC: 65: offload, " (nvptx64-nvidia-cuda)" {64}, object
|
109 |
| -// CHK-PHASES-NO-CC: 66: input, "{{.*}}nvidiacl.bc", ir, (device-sycl, sm_50) |
110 |
| -// CHK-PHASES-NO-CC: 67: input, "{{.*}}libdevice{{.*}}bc", ir, (device-sycl, sm_50) |
| 112 | +// CHK-PHASES-NO-CC: 66: input, "{{.*}}nvidiacl{{.*}}", ir, (device-sycl, sm_50) |
| 113 | +// CHK-PHASES-NO-CC: 67: input, "{{.*}}libdevice{{.*}}", ir, (device-sycl, sm_50) |
111 | 114 | // CHK-PHASES-NO-CC: 68: linker, {11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 66, 67}, ir, (device-sycl, sm_50)
|
112 | 115 | // CHK-PHASES-NO-CC: 69: sycl-post-link, {68}, ir, (device-sycl, sm_50)
|
113 | 116 | // CHK-PHASES-NO-CC: 70: file-table-tform, {69}, ir, (device-sycl, sm_50)
|
|
121 | 124 | //
|
122 | 125 | //
|
123 | 126 | /// Check phases specifying a compute capability.
|
124 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \ |
| 127 | +// RUN: %clangxx -ccc-print-phases --sysroot=%S/Inputs/SYCL -std=c++11 \ |
| 128 | +// RUN: -target x86_64-unknown-linux-gnu -fsycl \ |
125 | 129 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda \
|
| 130 | +// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/lib/nvidiacl \ |
| 131 | +// RUN: --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \ |
126 | 132 | // RUN: -Xsycl-target-backend "--cuda-gpu-arch=sm_35" %s 2>&1 \
|
127 | 133 | // RUN: | FileCheck -check-prefix=CHK-PHASES %s
|
128 | 134 | //
|
|
194 | 200 | // CHK-PHASES: 63: input, "{{.*}}libsycl-itt-stubs.o", object
|
195 | 201 | // CHK-PHASES: 64: clang-offload-unbundler, {63}, object
|
196 | 202 | // CHK-PHASES: 65: offload, " (nvptx64-nvidia-cuda)" {64}, object
|
197 |
| -// CHK-PHASES: 66: input, "{{.*}}nvidiacl.bc", ir, (device-sycl, sm_35) |
198 |
| -// CHK-PHASES: 67: input, "{{.*}}libdevice{{.*}}bc", ir, (device-sycl, sm_35) |
| 203 | +// CHK-PHASES: 66: input, "{{.*}}nvidiacl{{.*}}", ir, (device-sycl, sm_35) |
| 204 | +// CHK-PHASES: 67: input, "{{.*}}libdevice{{.*}}", ir, (device-sycl, sm_35) |
199 | 205 | // CHK-PHASES: 68: linker, {11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 66, 67}, ir, (device-sycl, sm_35)
|
200 | 206 | // CHK-PHASES: 69: sycl-post-link, {68}, ir, (device-sycl, sm_35)
|
201 | 207 | // CHK-PHASES: 70: file-table-tform, {69}, ir, (device-sycl, sm_35)
|
|
214 | 220 | // CHK-PREPROC: 2: offload, "device-sycl (nvptx64-nvidia-cuda:sm_[[CUDA_VERSION]])" {1}, c++-cpp-output
|
215 | 221 | // CHK-PREPROC: 4: compiler, {1}, none, (device-sycl, sm_[[CUDA_VERSION]])
|
216 | 222 | //
|
217 |
| -// |
218 |
| -// |
219 | 223 | // RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
|
220 | 224 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/no/CUDA/path/here \
|
221 | 225 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 \
|
|
0 commit comments