Skip to content

Skip einsum test_out_0d for NumPy older than 2.4.5 - #3029

Closed
antonwolfy wants to merge 1 commit into
IntelPython:masterfrom
antonwolfy:skip-einsum-out-0d-old-numpy
Closed

Skip einsum test_out_0d for NumPy older than 2.4.5#3029
antonwolfy wants to merge 1 commit into
IntelPython:masterfrom
antonwolfy:skip-einsum-out-0d-old-numpy

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This guards TestEinsum.test_out_0d with @testing.with_requires("numpy>=2.4.5").

The test compares dpnp.einsum against a reference numpy.einsum call that uses a 0-d out array with optimize="optimal". That reference behavior only matches on NumPy 2.4.5 and newer, so the test is skipped on older NumPy versions to avoid spurious failures.

The test was introduced in #2987.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

The reference numpy.einsum call with a 0-d out array and
optimize="optimal" only behaves as expected starting with
NumPy 2.4.5, so guard test_out_0d with the corresponding
version requirement.
@antonwolfy antonwolfy self-assigned this Aug 17, 2026
@antonwolfy antonwolfy added this to the 0.21.0 release milestone Aug 17, 2026
@antonwolfy

Copy link
Copy Markdown
Contributor Author

Superseded by #3030 (branch on the upstream repo instead of a fork).

@antonwolfy antonwolfy closed this Aug 17, 2026
@antonwolfy
antonwolfy deleted the skip-einsum-out-0d-old-numpy branch August 17, 2026 10:11
@coveralls

coveralls commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

No base build to compare — antonwolfy:skip-einsum-out-0d-old-numpy into IntelPython:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants