Skip to content

Adjustments to account for changed include location in main trunk of DPC++ #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,23 @@
#include "dpctl_error_handlers.h"
#include <CL/cl.h> /* OpenCL headers */
#include <CL/sycl.hpp> /* Sycl headers */
#if __has_include(<sycl/backend/opencl.hpp>)
#include <sycl/backend/opencl.hpp>
#else
#include <CL/sycl/backend/opencl.hpp>
#endif
#include <sstream>

#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION
// Note: include ze_api.h before level_zero.hpp. Make sure clang-format does
// not reorder the includes.
// clang-format off
#include "ze_api.h" /* Level Zero headers */
#include "sycl/ext/oneapi/backend/level_zero.hpp"
#if __has_include(<sycl/backend/level_zero.hpp>)
#include <sycl/backend/level_zero.hpp>
#else
#include <CL/sycl/backend/level_zero.hpp>
#endif
// clang-format on
#endif

Expand Down