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

Rework implementation of dpnp.fmax and dpnp.fmin functions #1905

Merged
merged 7 commits into from
Jul 4, 2024

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 2, 2024

The PR proposes to rework implementation of dpnp.fmax and dpnp.fmin functions which are quite limited now.

There is new VM functions are added to use fmax and fmin from OneMKL library where it's possible.
Also the PR adds new binary universal functions _fmax and _fmin to _ufunc_impl pybind11 extension which leverages on dpctl f/w.

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?

@antonwolfy antonwolfy self-assigned this Jul 2, 2024
Copy link
Contributor

github-actions bot commented Jul 2, 2024

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

Base automatically changed from adopt-to-asynchronous-dpctl-execution to master July 2, 2024 14:50
@antonwolfy antonwolfy marked this pull request as ready for review July 2, 2024 16:13
Copy link
Collaborator

@npolina4 npolina4 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 05e1bb6 into master Jul 4, 2024
23 of 31 checks passed
@antonwolfy antonwolfy deleted the add-fmax-fmin-impl branch July 4, 2024 16:14
github-actions bot added a commit that referenced this pull request Jul 4, 2024
* Implement dpnp.fmax and dpnp.fmin functions

* Updated existing tests and added new ones

* Removed unused code from cython backend

* Removed a reference to original descriptor 05e1bb6
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