From 932fb3fdd40237381125af3c13769193cee88ba3 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 8 Oct 2025 13:15:04 +0200 Subject: [PATCH 1/2] Bump min suppoprted numpy version to 2.0.0 --- conda-recipe/conda_build_config.yaml | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conda-recipe/conda_build_config.yaml b/conda-recipe/conda_build_config.yaml index c5df1a7f2e2..12d2a8da97e 100644 --- a/conda-recipe/conda_build_config.yaml +++ b/conda-recipe/conda_build_config.yaml @@ -1,5 +1,5 @@ numpy: - - '1.26' + - '2.0' c_compiler: # [linux] - gcc # [linux] cxx_compiler: # [linux] diff --git a/pyproject.toml b/pyproject.toml index 80c0674f669..4af2590ceb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ "dpctl>=0.20.0", "ninja>=1.11.1; platform_system!='Windows'", # NOTE: no DPNP restriction on NumPy version, so follow NumPy's drop schedule - "numpy>=1.26.0", + "numpy>=2.0.0", "scikit-build>=0.18.1", "setuptools>=79.0.1", "wheel>=0.45.1", @@ -51,7 +51,7 @@ dependencies = [ # "intel-cmplr-lib-rt>=0.59.0" # WARNING: use the latest dpctl dev version, otherwise stable w/f will fail "dpctl>=0.21.0dev0", - "numpy>=1.26.0" + "numpy>=2.0.0" ] description = "Data Parallel Extension for NumPy" dynamic = ["version"] From 0eabd93ee315f305b4ca5a08addb650cb62b5491 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 8 Oct 2025 14:20:37 +0200 Subject: [PATCH 2/2] Remove numpy compatibility note from dpnp.linalg.solve() implementation --- dpnp/linalg/dpnp_iface_linalg.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dpnp/linalg/dpnp_iface_linalg.py b/dpnp/linalg/dpnp_iface_linalg.py index ec48ccf381f..a52402f3d5e 100644 --- a/dpnp/linalg/dpnp_iface_linalg.py +++ b/dpnp/linalg/dpnp_iface_linalg.py @@ -1713,7 +1713,6 @@ def solve(a, b): b_shape = b.shape b_ndim = b.ndim - # compatible with numpy>=2.0 if b_ndim == 0: raise ValueError("b must have at least one dimension") if b_ndim == 1: