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

team-level std algos: part 10 #6256

Merged
merged 19 commits into from
Sep 26, 2023
Merged

team-level std algos: part 10 #6256

merged 19 commits into from
Sep 26, 2023

Conversation

fnrizzi
Copy link
Contributor

@fnrizzi fnrizzi commented Jul 4, 2023

Co-authored-by: Cezary Skrzyński
Co-authored-by: Jakub Strzebonski

Content

Team-level implementation and tests for:

  • Kokkos_IsSortedUntil.hpp
  • Kokkos_IsSorted.hpp
  • Kokkos_IsPartitioned.hpp
  • Kokkos_PartitionCopy.hpp
  • Kokkos_PartitionPoint.hpp

Technical comments

  • the change class -> typename and the enable if defaulted in the template parameters comes from this request

  • the code duplication is intentional and agreed upon after the long discussion in here

  • tests are run for both contiguous views and strided views

Other comments

Possible conflicts

Implementation-wise, this has not conflict with other team-level PRs so it could be merged independently.
However, a trivial conflict in the CMakeLists inside the unit test occurs if another of the team-level PRs is merged before this because each team-level PR adds test using a specific "label". Resolving this is trivial.

Associated wiki PRs

  • Kokkos_IsSortedUntil.hpp: see wiki PR
  • Kokkos_IsSorted.hpp, Kokkos_IsPartitioned.hpp, Kokkos_PartitionCopy.hpp: see wiki PR
  • Kokkos_PartitionPoint.hpp: see wiki PR

IMPORTANT: wiki PRs are not complete yet but 99% there

The issue tracking all wiki PRs is here

Co-authored-by: Cezary Skrzyński
Co-authored-by: Jakub Strzebonski
Co-authored-by: Cezary Skrzyński
Co-authored-by: Jakub Strzebonski
@fnrizzi fnrizzi marked this pull request as draft July 4, 2023 08:45
@fnrizzi fnrizzi changed the title Team level pr11 team-level std algos: part 10 Jul 4, 2023
@fnrizzi fnrizzi marked this pull request as ready for review July 4, 2023 15:46
@fnrizzi fnrizzi marked this pull request as draft July 19, 2023 06:31
@fnrizzi fnrizzi marked this pull request as ready for review August 10, 2023 09:50
@fnrizzi

This comment was marked as outdated.

@masterleinad masterleinad mentioned this pull request Sep 14, 2023
@fnrizzi
Copy link
Contributor Author

fnrizzi commented Sep 19, 2023

retest this please

@fnrizzi

This comment was marked as outdated.

Comment on lines +154 to +155
// FIXME: there is no parallel_scan overload that accepts TeamThreadRange and
// return_value, so temporarily serial implementation is used
Copy link
Contributor

Choose a reason for hiding this comment

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

This is changing with recent pull requests, though. Let's make sure that we can get this adapted in the near future; ideally even for the release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, i am going to fix all of this after all the team PRs are merged in a follow up.

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

Fine with me.

@crtrott crtrott merged commit d458fda into kokkos:develop Sep 26, 2023
28 checks passed
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.

None yet

4 participants