Update Kokkos library in LAMMPS to v3.7.0

This commit is contained in:
Stan Gerald Moore
2022-10-04 14:04:40 -06:00
parent dd072f7e08
commit f9f9e44f2d
653 changed files with 41432 additions and 33597 deletions

View File

@ -98,16 +98,6 @@ struct RandomProperties {
max = add.max > max ? add.max : max;
return *this;
}
KOKKOS_INLINE_FUNCTION
void operator+=(const volatile RandomProperties& add) volatile {
count += add.count;
mean += add.mean;
variance += add.variance;
covariance += add.covariance;
min = add.min < min ? add.min : min;
max = add.max > max ? add.max : max;
}
};
// FIXME_OPENMPTARGET: Need this for OpenMPTarget because contra to the standard
@ -532,13 +522,15 @@ struct TestDynRankView {
Pool random(13);
double min = 10.;
double max = 100.;
Kokkos::fill_random(A, random, min, max);
ExecutionSpace exec;
Kokkos::fill_random(exec, A, random, min, max);
ReducerValueType val;
Kokkos::parallel_reduce(Kokkos::RangePolicy<ExecutionSpace>(0, A.size()),
*this, ReducerType(val));
Kokkos::parallel_reduce(
Kokkos::RangePolicy<ExecutionSpace>(exec, 0, A.size()), *this,
ReducerType(val));
Kokkos::fence();
exec.fence();
ASSERT_GE(val.min_val, min);
ASSERT_LE(val.max_val, max);
}