File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 32
32
#include " dpctl_error_handlers.h"
33
33
#include < CL/cl.h> /* OpenCL headers */
34
34
#include < CL/sycl.hpp> /* Sycl headers */
35
+ #if __has_include(<sycl/backend/opencl.hpp>)
36
+ #include < sycl/backend/opencl.hpp>
37
+ #else
35
38
#include < CL/sycl/backend/opencl.hpp>
39
+ #endif
36
40
#include < sstream>
37
41
38
42
#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION
39
43
// Note: include ze_api.h before level_zero.hpp. Make sure clang-format does
40
44
// not reorder the includes.
41
45
// clang-format off
42
46
#include " ze_api.h" /* Level Zero headers */
43
- #include " sycl/ext/oneapi/backend/level_zero.hpp"
47
+ #if __has_include(<sycl/backend/level_zero.hpp>)
48
+ #include < sycl/backend/level_zero.hpp>
49
+ #else
50
+ #include < CL/sycl/backend/level_zero.hpp>
51
+ #endif
44
52
// clang-format on
45
53
#endif
46
54
You can’t perform that action at this time.
0 commit comments