OneAPI support enabled despite false negative error

Hello, this a repost from the [bug report]( #151565 - OneAPI support enabled despite false negative error - blender - Blender Projects ).

This minor bugs shows OneAPI support enabled despite a false negative based on this build extract:

-- Could NOT find SYCL (missing: SYCL_LIBRARY SYCL_INCLUDE_DIR) 
-- Found LevelZero: /usr/lib64/libze_loader.so
-- oneAPI not found, disabling WITH_CYCLES_DEVICE_ONEAPI
-- SYCL 6.0+ or Level Zero not found, disabling WITH_CYCLES_DEVICE_ONEAPI

Yet,

Rendering (Cycles):
  - WITH_CYCLES_OSL                 ON
  - WITH_CYCLES_EMBREE              ON
  - WITH_CYCLES_PATH_GUIDING        ON
  - WITH_CYCLES_DEVICE_OPTIX        ON
  - WITH_CYCLES_DEVICE_CUDA         ON
  - WITH_CYCLES_CUDA_BINARIES       OFF
  - WITH_CYCLES_DEVICE_ONEAPI       ON
  - WITH_CYCLES_ONEAPI_BINARIES     ON
  - WITH_CYCLES_DEVICE_HIP          ON
  - WITH_CYCLES_HIP_BINARIES        ON
  - WITH_CYCLES_DEVICE_HIPRT        ON

Reference from the Blender spec file on Fedora source build system. OneAPI Level Zero is available as dependency hence -- Found LevelZero: /usr/lib64/libze_loader.so bringing a confusion with this line: -- SYCL 6.0+ or Level Zero not found, disabling WITH_CYCLES_DEVICE_ONEAPI . If SYCL is the actual missing component for WITH_CYCLES_DEVICE_ONEAPI=ON, then Level Zero should not be mentioned.

1 Like

Our build system will not change any saved setting (otherwise you would have to go in and turn it on again every time you run into an issue). It will turn it off only when building.

You need both sycl and levelzero for building openapi support. That’s why it prints that either both or one of them were not found so it will not be enabled while building until both are available.

Thanks for the clarification.