-
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
OpenMPTarget: MDRange parallel_reduce #4032
Conversation
…part of incremental test 14.
…ingle routine to avoid code duplication.
|
Fixed it. |
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.
Looks fine besides the invalid specializations for rank 1 and 7
} | ||
|
||
template <int Rank, class ValueType> | ||
inline typename std::enable_if<Rank == 7>::type execute_tile( |
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.
We don't support rank == 7
kokkos/core/src/Kokkos_Rank.hpp
Line 60 in 8f33b38
static_assert(N < 7u, "Kokkos Error: Unsupported rank..."); |
memory_space>::accessible) {} | ||
|
||
template <int Rank, class ValueType> | ||
inline typename std::enable_if<Rank == 1>::type execute_tile( |
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.
Rank
has to be at least 2
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.
👍 Delete implementations for rank > 6 and rank < 2.
The PR contains the following:
reduction
happens on a device view.