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

Commit e15ad21

Browse files
authored
[SYCL] Switch to legacy include path (#354)
Not all compiler versions have sycl/sycl.hpp path. Switching to CL/sycl.hpp allows to run tests on all existing compiler versions.
1 parent adae2f6 commit e15ad21

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SYCL/Regression/2020-spec-constants-debug-info.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
// simple example without crashes/assertions firing at llvm-spirv step due to
77
// debug info corrupted by sycl-post-link
88

9-
#include <sycl/sycl.hpp>
9+
// TODO: Switch to sycl/sycl.hpp once all compiler versions support it
10+
#include <CL/sycl.hpp>
1011

1112
constexpr sycl::specialization_id<int> test_id_1{42};
1213

SYCL/SubGroup/sub_groups_sycl2020.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

5-
#include <sycl/sycl.hpp>
5+
// TODO: Switch to sycl/sycl.hpp once all compiler versions support it
6+
#include <CL/sycl.hpp>
67

78
class TestKernel;
89
class TestKernelCUDA;

0 commit comments

Comments
 (0)