Update Kokkos library in LAMMPS to v4.3.0
This commit is contained in:
@ -239,16 +239,8 @@ KOKKOS_FUNCTION bool team_members_have_matching_result(
|
||||
// set accum to 1 if a mismach is found
|
||||
const bool mismatch = memberValue != target;
|
||||
int accum = static_cast<int>(mismatch);
|
||||
// FIXME_OPENMPTARGET: team API does not meet the TeamHandle concept and
|
||||
// ignores the reducer passed
|
||||
#if defined KOKKOS_ENABLE_OPENMPTARGET
|
||||
Kokkos::Sum<int> dummyReducer(accum);
|
||||
const auto result = teamHandle.team_reduce(accum, dummyReducer);
|
||||
return (result == 0);
|
||||
#else
|
||||
teamHandle.team_reduce(Kokkos::Sum<int>(accum));
|
||||
return (accum == 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class ValueType1, class ValueType2>
|
||||
|
||||
Reference in New Issue
Block a user