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

Reuse OneDPL implementation of std::nth_element() for partition of 1D array #1406

Merged
merged 4 commits into from
May 30, 2023

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented May 22, 2023

The PR is about to close #1395.

In case of 1d array with C-contiguous data it is possible to use existing OneDPL implementation of std::nth_element() to make a partition copy of input array with single k-th element index to partition by (while a sequence of k-th element indexes is currently unsupported by dpnp).

Additionally, dpnp.partition() method is extended with complex and boolean types support and partition method is added to dpnp array.

  • 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 May 22, 2023
@antonwolfy antonwolfy merged commit 5c67ba3 into IntelPython:master May 30, 2023
@antonwolfy antonwolfy deleted the fix_crash_in_partition branch May 30, 2023 23:02
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.

dpnp.partition segfaults on xpu
1 participant