Undeclared identifier CL_DEVICE_IL_VERSION_KHR

When you build an application with oneDAL, you might encounter the following problem:

error: use of undeclared identifier CL_DEVICE_IL_VERSION_KHR

This is caused by a bug in Intel® oneAPI DPC++/C++ Compiler 2021.1-beta06 release.

How to fix

The workaround for this issue is to set CPLUS_INCLUDE_PATH as follows:

export CPLUS_INCLUDE_PATH="$DPCPP_ROOT/compiler/latest/linux/include/sycl"