Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 2d0a31f

Browse files
author
Artem Gindinson
authored
[SYCL] Test multi-target compilation for SYCL2020 spec constants (#584)
Signed-off-by: Artem Gindinson <[email protected]>
1 parent c28d0d3 commit 2d0a31f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// REQUIRES: opencl-aot, cpu
2+
// UNSUPPORTED: cuda
3+
4+
// RUN: %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64 %S/Inputs/common.cpp -o %t_spv_cpu.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t_spv_cpu.out
6+
// RUN: %GPU_RUN_PLACEHOLDER %t_spv_cpu.out
7+
// Ensure that image ordering does not impact the execution
8+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64 %S/Inputs/common.cpp -o %t_cpu_spv.out
9+
// RUN: %CPU_RUN_PLACEHOLDER %t_cpu_spv.out
10+
// RUN: %GPU_RUN_PLACEHOLDER %t_cpu_spv.out
11+
12+
// This test checks correctness of SYCL2020 specialization constants' handling
13+
// whenever targets with both native and non-native support are present for the
14+
// fat binary.

0 commit comments

Comments
 (0)