-
Notifications
You must be signed in to change notification settings - Fork 407
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
Allow using tagged final functor in parallel_reduce #3714
Conversation
1ba8ceb
to
fbf04b6
Compare
template <typename Dummy = ArgTag> | ||
KOKKOS_FORCEINLINE_FUNCTION static std::enable_if_t< | ||
std::is_same<Dummy, void>::value> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
eb4c5c0
to
9403ab9
Compare
Ready from my side. Needs more reviews. |
Fixes #3651.