-
Notifications
You must be signed in to change notification settings - Fork 23
Resolve tests failures in rounding functions with numpy 2.0 #2589
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/index.html |
Contributor
|
Array API standard conformance tests for dpnp=0.19.0dev5=py313h509198e_3 ran successfully. |
vlad-perevezentsev
approved these changes
Sep 24, 2025
Contributor
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you @antonwolfy !
github-actions bot
added a commit
that referenced
this pull request
Sep 24, 2025
There is data type mismatch in result returned for the rounding functions, because numpy.ceil, numpy.floor, numpy.trunc, and numpy.fix always returns floating dtype for "numpy < 2.1.0". The dpnp behavior is aligned with "numpy >= 2.1.0", so this PR adds a missing fixture to run the test depending on minimum required numpy version. bea5156
7 tasks
antonwolfy
added a commit
that referenced
this pull request
Sep 24, 2025
…2590) The PR is follow of #2589 to address remaining issue observing on Windows only. There is data type mismatch in result returned for numpy.power, numpy.floor_divide, numpy.fmod, and numpy.remainder for "numpy < 2.1.0". They return int32, but expected int64. Where dpnp behavior is aligned with "numpy >= 2.1.0".
github-actions bot
added a commit
that referenced
this pull request
Sep 24, 2025
…2590) The PR is follow of #2589 to address remaining issue observing on Windows only. There is data type mismatch in result returned for numpy.power, numpy.floor_divide, numpy.fmod, and numpy.remainder for "numpy < 2.1.0". They return int32, but expected int64. Where dpnp behavior is aligned with "numpy >= 2.1.0". 222b50f
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is data type mismatch in result returned for the rounding functions, because numpy.ceil, numpy.floor, numpy.trunc, and numpy.fix always returns floating dtype for "numpy < 2.1.0".
The dpnp behavior is aligned with "numpy >= 2.1.0", so this PR adds a missing fixture to run the test depending on minimum required numpy version.