From 71ef5e10106d77a25b85414f589b5f546ddcc2ad Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 30 Jul 2026 12:37:07 +0200 Subject: [PATCH] Add opencl-headers host dependency on Windows as a build workaround Starting with Intel oneAPI 2026.1.1, the `intel-sycl-rt` conda package no longer bundles the OpenCL headers (`CL/cl.h`), which the SYCL headers still `#include`. On Linux the package gained an explicit `opencl-headers` run dependency (INST-26476), so the header is pulled in transitively and the build keeps working. The Windows package dropped the headers without adding that dependency, so the backend now fails to compile with: fatal error: 'CL/cl.h' file not found Add `opencl-headers` as a host dependency on Windows to pull the header in from conda-forge (it installs to `%PREFIX%\Library\include\CL\cl.h`, already on the compiler include path). This is a workaround until the Intel Windows `intel-sycl-rt` package is fixed to match the Linux dependency. --- conda-recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 19c335940450..2cb767bab702 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -36,6 +36,7 @@ requirements: - mkl-devel-dpcpp >={{ required_compiler_and_mkl_version }},<{{ max_compiler_and_mkl_version }} - onedpl-devel - tbb-devel + - opencl-headers >=2025.06.13 # [win] build: - {{ compiler('cxx') }} - {{ stdlib('c') }}