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 3232#include " dpctl_error_handlers.h"
3333#include < CL/cl.h> /* OpenCL headers */
3434#include < CL/sycl.hpp> /* Sycl headers */
35+ #if __has_include(<sycl/backend/opencl.hpp>)
36+ #include < sycl/backend/opencl.hpp>
37+ #else
3538#include < CL/sycl/backend/opencl.hpp>
39+ #endif
3640#include < sstream>
3741
3842#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION
3943// Note: include ze_api.h before level_zero.hpp. Make sure clang-format does
4044// not reorder the includes.
4145// clang-format off
4246#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
4452// clang-format on
4553#endif
4654
You can’t perform that action at this time.
0 commit comments