From 88c3f3056f11bb196df3d385fe5d9b945d87b972 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 5 Aug 2026 16:27:28 +0200 Subject: [PATCH 1/2] Link backend only to used MKL SYCL domains --- dpnp/backend/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dpnp/backend/CMakeLists.txt b/dpnp/backend/CMakeLists.txt index 433ab298d476..c3ba1760ff61 100644 --- a/dpnp/backend/CMakeLists.txt +++ b/dpnp/backend/CMakeLists.txt @@ -76,7 +76,12 @@ if(DPNP_GENERATE_COVERAGE) target_link_options(${_trgt} PRIVATE -fprofile-instr-generate -fcoverage-mapping) endif() -target_link_libraries(${_trgt} PUBLIC MKL::MKL_SYCL) +# Link only the MKL SYCL domains actually used by the backend sources +# (BLAS: mkl_blas::scal; RNG: engines/distributions; VM: vector math ops) +target_link_libraries( + ${_trgt} + PUBLIC MKL::MKL_SYCL::BLAS MKL::MKL_SYCL::RNG MKL::MKL_SYCL::VM +) target_link_libraries(${_trgt} PUBLIC oneDPL) if(UNIX) From f2e0147d83661156cd000f9b1a686a9535e047d4 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 5 Aug 2026 16:29:24 +0200 Subject: [PATCH 2/2] Populate changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index db208dbc13f7..a8172f5a1e7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ This release is compatible with NumPy 2.5. * Replaced the deprecated `nd_item::barrier()` member calls in the `accumulators` and `gemm` kernels with the SYCL 2020 `sycl::group_barrier()` free function [#3006](https://github.com/IntelPython/dpnp/pull/3006) * Changed `dpnp.broadcast_arrays` and `dpnp.tensor.broadcast_arrays` to return a tuple instead of a list, aligning with the 2025.12 Python array API spec [#2944](https://github.com/IntelPython/dpnp/pull/2944) * Bumped the default minimum required DPC++ compiler version to `2026.1.1` and migrated to the OpenCL ICD loader from the conda-forge `ocl-icd-system` (Linux) and `khronos-opencl-icd-loader` (Windows) packages [#2905](https://github.com/IntelPython/dpnp/pull/2905) +* Linked the `dpnp_backend_c` library against only the MKL SYCL domains it uses (`BLAS`, `RNG`, `VM`) [#3012](https://github.com/IntelPython/dpnp/pull/3012) ### Deprecated