|
8 | 8 |
|
9 | 9 | // REQUIRES: ioc64, ocloc, aoc
|
10 | 10 |
|
11 |
| -// Produce object file, spirv |
| 11 | +// 1-command compilation case |
| 12 | +// Targeting CPU, GPU, FPGA |
| 13 | +// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-linux-sycldevice,spir64_gen-unknown-linux-sycldevice,spir64_fpga-unknown-linux-sycldevice -Xsycl-target-backend=spir64_gen-unknown-linux-sycldevice "-device skl" %s -o %t_all.out |
| 14 | +// RUN: env SYCL_DEVICE_TYPE=HOST %t_all.out |
| 15 | +// RUN: %CPU_RUN_PLACEHOLDER %t_all.out |
| 16 | +// RUN: %GPU_RUN_PLACEHOLDER %t_all.out |
| 17 | +// RUN: %ACC_RUN_PLACEHOLDER %t_all.out |
| 18 | + |
| 19 | +// Produce object file, spirv, device images to combine these differently |
| 20 | +// at link-time, thus testing various AOT-compiled images configurations |
12 | 21 | // RUN: %clangxx -fsycl %s -c -o %t.o
|
13 | 22 | // RUN: %clangxx -fsycl -fsycl-link-targets=spir64-unknown-linux-sycldevice %t.o -o %t.spv
|
14 | 23 | // AOT-compile device binary images
|
|
34 | 43 | // RUN: %GPU_RUN_PLACEHOLDER %t_gpu_fpga.out
|
35 | 44 | // RUN: %ACC_RUN_PLACEHOLDER %t_gpu_fpga.out
|
36 | 45 |
|
37 |
| -// CPU, GPU, FPGA |
38 |
| -// RUN: %clangxx -fsycl -fsycl-add-targets=spir64_x86_64:%t_cpu.ir,spir64_gen:%t_gen.out,spir64_fpga:%t_fpga.aocx %t.o -o %t_all.out |
39 |
| -// RUN: env SYCL_DEVICE_TYPE=HOST %t_all.out |
40 |
| -// RUN: %CPU_RUN_PLACEHOLDER %t_all.out |
41 |
| -// RUN: %GPU_RUN_PLACEHOLDER %t_all.out |
42 |
| -// RUN: %ACC_RUN_PLACEHOLDER %t_all.out |
43 |
| - |
44 | 46 | // No AOT-compiled image for CPU
|
45 | 47 | // RUN: %clangxx -fsycl -fsycl-add-targets=spir64:%t.spv,spir64_gen:%t_gen.out,spir64_fpga:%t_fpga.aocx %t.o -o %t_spv_gpu_fpga.out
|
46 | 48 | // RUN: %CPU_RUN_PLACEHOLDER %t_spv_gpu_fpga.out
|
|
0 commit comments