Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Oct 10, 2023
1 parent 1f4e3d5 commit 5b693fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions algorithms/src/std_algorithms/impl/Kokkos_CopyIf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ KOKKOS_FUNCTION OutputIterator copy_if_team_impl(
}

const std::size_t num_elements = Kokkos::Experimental::distance(first, last);
if constexpr (stdalgo_must_use_kokkos_single_for_team_scan<
typename TeamHandleType::execution_space>::value) {
if constexpr (stdalgo_must_use_kokkos_single_for_team_scan_v<
typename TeamHandleType::execution_space>) {
std::size_t count = 0;
Kokkos::single(
Kokkos::PerTeam(teamHandle),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@ struct stdalgo_must_use_kokkos_single_for_team_scan<Kokkos::Experimental::HPX>
: std::true_type {};
#endif

// FIXME_THREADS
#if defined(KOKKOS_ENABLE_THREADS)
template <>
struct stdalgo_must_use_kokkos_single_for_team_scan<Kokkos::Threads>
: std::true_type {};
#endif
template <typename T>
inline constexpr bool stdalgo_must_use_kokkos_single_for_team_scan_v =
stdalgo_must_use_kokkos_single_for_team_scan<T>::value;

} // namespace Impl
} // namespace Experimental
Expand Down
4 changes: 2 additions & 2 deletions algorithms/src/std_algorithms/impl/Kokkos_UniqueCopy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ KOKKOS_FUNCTION OutputIterator unique_copy_team_impl(
}

else {
if constexpr (stdalgo_must_use_kokkos_single_for_team_scan<
typename TeamHandleType::execution_space>::value) {
if constexpr (stdalgo_must_use_kokkos_single_for_team_scan_v<
typename TeamHandleType::execution_space>) {
std::size_t count = 0;
Kokkos::single(
Kokkos::PerTeam(teamHandle),
Expand Down

0 comments on commit 5b693fd

Please sign in to comment.