Developer Guide and Reference

  • 2021.3
  • 06/28/2021
  • Public Content
Contents

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"

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.