Skip to content

Update array API version supported to 2024.12 #2416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
Merged
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.18.0] - MM/DD/2025

This release achieves 100% compliance with Python Array API specification (revision [2024.12](https://data-apis.org/array-api/2024.12/)).

### Added

* Added implementation of `dpnp.hamming` [#2341](https://github.com/IntelPython/dpnp/pull/2341), [#2357](https://github.com/IntelPython/dpnp/pull/2357)
Expand All @@ -23,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Extended `dpnp.fft.fftfreq` and `dpnp.fft.rfftfreq` functions to support `dtype` keyword per Python Array API spec 2024.12 [#2384](https://github.com/IntelPython/dpnp/pull/2384)
* Updated `dpnp.fix` to return output with the same data-type of input [#2392](https://github.com/IntelPython/dpnp/pull/2392)
* Updated `dpnp.einsum` to add support for `order=None` [#2411](https://github.com/IntelPython/dpnp/pull/2411)
* Updated Python Array API specification version supported to `2024.12` [#2416](https://github.com/IntelPython/dpnp/pull/2416)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion doc/reference/array_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Array API standard compatibility

DPNP's main namespace as well as the :mod:`dpnp.fft` and :mod:`dpnp.linalg`
namespaces are compatible with the
`2023.12 version <https://data-apis.org/array-api/2023.12/index.html>`__
`2024.12 version <https://data-apis.org/array-api/2024.12/index.html>`__
of the Python array API standard.

Inspection
Expand Down
8 changes: 5 additions & 3 deletions dpnp/tests/test_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,20 @@ def test_basic(self):
xp = a.__array_namespace__()
assert xp is dpnp

@pytest.mark.parametrize("api_version", [None, "2023.12"])
@pytest.mark.parametrize("api_version", [None, "2024.12"])
def test_api_version(self, api_version):
a = dpnp.arange(2)
xp = a.__array_namespace__(api_version=api_version)
assert xp is dpnp

@pytest.mark.parametrize("api_version", ["2021.12", "2022.12", "2024.12"])
@pytest.mark.parametrize(
"api_version", ["2021.12", "2022.12", "2023.12", "2025.12"]
)
def test_unsupported_api_version(self, api_version):
a = dpnp.arange(2)
assert_raises_regex(
ValueError,
"Only 2023.12 is supported",
"Only 2024.12 is supported",
a.__array_namespace__,
api_version=api_version,
)
Expand Down
Loading