Level Zero runtime dependency

When you build an application with oneDAL on Linux*, you might encounter the following error:

fatal error: 'level_zero/ze_api.h' file not found

This means that you do not have Level Zero in your environment.

Note

For more information about Level Zero, refer to Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.

How to Fix

There are two ways to fix this:

  • Change your driver version to the one with Level Zero support.

  • Compile your application without Level Zero support:

    1. Use DAAL_DISABLE_LEVEL_ZERO define:

      #define DAAL_DISABLE_LEVEL_ZERO
      
    2. Disable Level Zero runtime:

      export SYCL_BE=PI_OPENCL