Skip to content
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

Add implementation of dpnp.nextafter function #1938

Merged
merged 7 commits into from
Jul 23, 2024
Merged

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 19, 2024

The PR proposes to add implementation of dpnp.nextafter function which is missing now.

There is new VM functions are added to use nextafter from OneMKL library where it's possible.
In other places the PR propose to leverage on new binary universal function _nextafter function from dpctl implemented in dpctl-1730.

The all affected tests are updated to cover different use cases.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

github-actions bot commented Jul 21, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@antonwolfy antonwolfy marked this pull request as ready for review July 22, 2024 13:08
dpnp/dpnp_iface_mathematical.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_mathematical.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_mathematical.py Show resolved Hide resolved
tests/test_mathematical.py Outdated Show resolved Hide resolved
tests/third_party/cupy/math_tests/test_floating.py Outdated Show resolved Hide resolved
dpnp/backend/extensions/vm/nextafter.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@vtavana vtavana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @antonwolfy!

@antonwolfy antonwolfy merged commit 7b016d9 into master Jul 23, 2024
39 of 45 checks passed
@antonwolfy antonwolfy deleted the impl_nextafter branch July 23, 2024 22:34
github-actions bot added a commit that referenced this pull request Jul 23, 2024
* Implement dpnp.nextafter

* Add MKL extension for nextafter

* Applied pre-commit hook

* Applied review comments 7b016d9
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