Skip to content

Commit 646aee6

Browse files
Merge pull request #859 from IntelPython/fix-intel-llvm-dpcpp-build
2 parents 1131ce9 + d651f52 commit 646aee6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

libsyclinterface/source/dpctl_sycl_kernel_bundle_interface.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,23 @@
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

0 commit comments

Comments
 (0)