Skip to content

Commit bb45a4d

Browse files
Artem Gindinsonvladimirlaz
authored andcommitted
[SYCL][NFC] Add a regular compilation run for aot/multiple_devices.cpp test
Signed-off-by: Artem Gindinson <[email protected]>
1 parent ebc1488 commit bb45a4d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

sycl/test/aot/multiple-devices.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@
88

99
// REQUIRES: ioc64, ocloc, aoc
1010

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
1221
// RUN: %clangxx -fsycl %s -c -o %t.o
1322
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64-unknown-linux-sycldevice %t.o -o %t.spv
1423
// AOT-compile device binary images
@@ -34,13 +43,6 @@
3443
// RUN: %GPU_RUN_PLACEHOLDER %t_gpu_fpga.out
3544
// RUN: %ACC_RUN_PLACEHOLDER %t_gpu_fpga.out
3645

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-
4446
// No AOT-compiled image for CPU
4547
// 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
4648
// RUN: %CPU_RUN_PLACEHOLDER %t_spv_gpu_fpga.out

0 commit comments

Comments
 (0)