Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions common/src/KokkosKernels_Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1305,16 +1305,14 @@ KOKKOS_INLINE_FUNCTION T *alignPtrTo(InPtr *p) {
} // namespace KokkosKernels

// Define the identity for array_sum_reduce
namespace Kokkos {
template <typename scalar_t, int N>
struct reduction_identity<KokkosKernels::Impl::array_sum_reduce<scalar_t, N>> {
struct Kokkos::reduction_identity<KokkosKernels::Impl::array_sum_reduce<scalar_t, N>> {
typedef KokkosKernels::Impl::array_sum_reduce<scalar_t, N> T;
KOKKOS_FORCEINLINE_FUNCTION static T sum() {
// default constructor default-initializes each element (this should always
// be 0)
return T();
}
};
} // namespace Kokkos

#endif
Loading