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

Allow using tagged final functor in parallel_reduce #3714

Merged
merged 4 commits into from
Jan 15, 2021

Conversation

masterleinad
Copy link
Contributor

Fixes #3651.

Comment on lines 2094 to 2096
template <typename Dummy = ArgTag>
KOKKOS_FORCEINLINE_FUNCTION static std::enable_if_t<
std::is_same<Dummy, void>::value>
Copy link
Member

Choose a reason for hiding this comment

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

This works but departs from what is done above for FunctorValueInit and FunctorValueJoin where two separate specializations are provided.

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, this seems to be less code so I went with this approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you insist, I can change, of course.

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer consistency within that file but I will not block if I am the only one feeling that way.

core/unit_test/TestReduce.hpp Outdated Show resolved Hide resolved
@masterleinad
Copy link
Contributor Author

Ready from my side. Needs more reviews.

@dalg24 dalg24 merged commit 01d40ab into kokkos:develop Jan 15, 2021
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.

Support work tag overload final() function in parallel dispatch functor
3 participants