Skip to content

DPC++ daily 2022-06-08

Pre-release
Pre-release
Compare
Choose a tag to compare
@bb-sycl bb-sycl released this 08 Jun 16:20
· 135855 commits to sycl since this release
3fcf848
[SYCL] Isolate OpenCL types and enums (#6261)

This PR populates PI enums and typedefs with values taken from the OpenCL equivalents; it also makes sure that all uses of the system OpenCL header `cl.h` are channelled through `include/CL/sycl/detail/cl.h`. Finally, `pi.h` and `pi.hpp` would only tap into the system `cl.h` for OpenCL backend (guarded by `PI_OPENCL_AVAILABLE` compiler definition), which allowed a removal of all OpenCL types and enums from other PI backends.

Fixes: https://github.com/intel/llvm/issues/1265