Skip to content

Commit

Permalink
Fix Kokkos_Threads_Parallel_MDRange.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Mar 3, 2023
1 parent 7b598eb commit 952b841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/Threads/Kokkos_Threads_Parallel_MDRange.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ class ParallelReduce<CombinedFunctorReducerType,
}
}

template <class HostViewType>
template <class ViewType>
ParallelReduce(const CombinedFunctorReducerType &arg_functor_reducer,
const MDRangePolicy &arg_policy,
const HostViewType &arg_result_view)
const ViewType &arg_result_view)
: m_iter(arg_policy, arg_functor_reducer.get_functor()),
m_reducer(arg_functor_reducer.get_reducer()),
m_result_ptr(arg_result_view.data()) {
static_assert(Kokkos::is_view<HostViewType>::value,
static_assert(Kokkos::is_view<ViewType>::value,
"Kokkos::Threads reduce result must be a View");

static_assert(
Expand Down

0 comments on commit 952b841

Please sign in to comment.