From b059d518ada53c32f9aa4944ee24aae0de86e4ba Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 1 Jul 2026 16:16:08 +0200 Subject: [PATCH 1/2] Include headers from SYCL compiler as SYSTEM --- dpnp/tensor/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dpnp/tensor/CMakeLists.txt b/dpnp/tensor/CMakeLists.txt index 3a74361336c5..5345b672397d 100644 --- a/dpnp/tensor/CMakeLists.txt +++ b/dpnp/tensor/CMakeLists.txt @@ -356,9 +356,16 @@ foreach(python_module_name ${_py_trgts}) ${python_module_name} PRIVATE ${CMAKE_SOURCE_DIR}/dpnp/include - ${Dpctl_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/libtensor/include ${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/ + ) + + target_include_directories( + ${python_module_name} + SYSTEM + PRIVATE + ${SYCL_INCLUDE_DIR} + ${Dpctl_INCLUDE_DIR} ${CMAKE_BINARY_DIR} # For generated Cython headers ) target_link_options(${python_module_name} PRIVATE ${_linker_options}) From 46eceefa3ae2b53dbd3ea913948a980fad737e3a Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 1 Jul 2026 16:18:22 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45a43370fafe..dd3ab1ad8b0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ This release is compatible with NumPy 2.5. * Fixed `dpnp.linalg.svd(..., hermitian=True)` returning a non-unitary `vh` for singular input arrays due to a zero sign appearing [#2954](https://github.com/IntelPython/dpnp/pull/2954) * Fixed scalar conversion of size-one `dpnp.tensor.usm_ndarray` (e.g. `int()`, `float()`, indexing) which failed with NumPy 2.5 after the in-place `ndarray.shape` assignment was deprecated [#2958](https://github.com/IntelPython/dpnp/pull/2958) * Fixed `dpnp.mgrid` and `dpnp.ogrid` to return consistent results between single-slice and tuple-of-slices syntax when the step is a complex number with a non-integer magnitude (e.g. `2.5j`) [#2971](https://github.com/IntelPython/dpnp/pull/2971) +* Fixed a flood of deprecation warnings from the DPC++/SYCL headers when building `dpnp.tensor` on Windows [#2984](https://github.com/IntelPython/dpnp/pull/2984) ### Security