Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This release is compatible with NumPy 2.5.
* Removed dead code branches guarded by outdated oneMKL and DPC++ compiler version checks [#2999](https://github.com/IntelPython/dpnp/pull/2999)
* 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)

### Deprecated

Expand Down
29 changes: 26 additions & 3 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
{% set max_compiler_and_mkl_version = environ.get("MAX_BUILD_CMPL_MKL_VERSION", "2027.0a0") %}
{% set required_compiler_and_mkl_version = "2026.0" %}
{% set required_compiler_version = environ.get("MIN_BUILD_CMPL_VERSION", "2026.1.1") %}
{% set required_mkl_version = "2026.0" %}
{% set required_dpctl_version = "0.23.0dev0" %}

{# DPNP does not support a compiler older than 2026.0, so reject any #}
{# MIN_BUILD_CMPL_VERSION override below that by calling an undefined macro. #}
{% if required_compiler_version.split('.') | map('int') | list < [2026, 0] %}
{{ MIN_BUILD_CMPL_VERSION_must_be_at_least_2026_0() }}
{% endif %}

{# The minimum compiler version must stay strictly below the (exclusive) maximum, #}
{# otherwise the ">=min,<max" compiler pin collapses to an unsolvable empty range. #}
{% if required_compiler_version.split('.') | map('int') | list >= max_compiler_and_mkl_version.split('.') | map('int') | list %}
{{ MIN_BUILD_CMPL_VERSION_must_be_below_MAX_BUILD_CMPL_MKL_VERSION() }}
{% endif %}

{# The conda-forge OpenCL ICD loaders (ocl-icd-system / khronos-opencl-icd-loader) #}
{# require a compiler and runtime of 2026.1.1 or newer. Fall back to the legacy #}
{# intel-gpu-ocl-icd-system package when building against an older compiler. #}
{% set use_conda_forge_ocl_icd = required_compiler_version.split('.') | map('int') | list >= [2026, 1, 1] %}

{% set pyproject = load_file_data('pyproject.toml') %}
{% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}

Expand Down Expand Up @@ -33,14 +51,14 @@ requirements:
# versioneer dependency
- tomli # [py<311]
# Do not use pyproject.toml for setting dependencies on OneAPI packages
- mkl-devel-dpcpp >={{ required_compiler_and_mkl_version }},<{{ max_compiler_and_mkl_version }}
- mkl-devel-dpcpp >={{ required_mkl_version }},<{{ max_compiler_and_mkl_version }}
- onedpl-devel
- tbb-devel
- opencl-headers >=2025.06.13 # [win]
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- {{ compiler('dpcpp') }} >={{ required_compiler_and_mkl_version }},<{{ max_compiler_and_mkl_version }}
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},<{{ max_compiler_and_mkl_version }}
run:
- python
- python-gil # [py>=314]
Expand All @@ -55,7 +73,12 @@ requirements:
- {{ pin_compatible('onemkl-sycl-rng', min_pin='x.x', max_pin='x') }}
- {{ pin_compatible('onemkl-sycl-vm', min_pin='x.x', max_pin='x') }}
- numpy
{% if use_conda_forge_ocl_icd %}
- ocl-icd-system # [linux]
- khronos-opencl-icd-loader # [win]
{% else %}
- intel-gpu-ocl-icd-system
{% endif %}

build:
number: {{ GIT_DESCRIBE_NUMBER }}
Expand Down
4 changes: 2 additions & 2 deletions doc/quick_start_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ On Linux:
.. code-block:: bash

conda create -n build-env dpctl cython dpcpp_linux-64 mkl-devel-dpcpp tbb-devel \
onedpl-devel cmake scikit-build ninja versioneer pytest intel-gpu-ocl-icd-system \
onedpl-devel cmake scikit-build ninja versioneer pytest ocl-icd-system \
-c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels
conda activate build-env

Expand All @@ -104,7 +104,7 @@ On Windows:
.. code-block:: bash

conda create -n build-env dpctl cython dpcpp_win-64 mkl-devel-dpcpp tbb-devel \
onedpl-devel cmake scikit-build ninja versioneer pytest intel-gpu-ocl-icd-system \
onedpl-devel cmake scikit-build ninja versioneer pytest khronos-opencl-icd-loader\
-c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels
conda activate build-env

Expand Down
Loading