Update Kokkos library in LAMMPS to v3.2
This commit is contained in:
@ -67,7 +67,7 @@
|
||||
//
|
||||
// The first dimension of the View is the dimension over which it is
|
||||
// efficient for Kokkos to parallelize.
|
||||
typedef Kokkos::View<double * [3]> view_type;
|
||||
using view_type = Kokkos::View<double * [3]>;
|
||||
|
||||
// parallel_for functor that fills the View given to its constructor.
|
||||
// The View must already have been allocated.
|
||||
@ -102,8 +102,8 @@ struct ReduceFunctor {
|
||||
ReduceFunctor(view_type a_) : a(a_) {}
|
||||
|
||||
// If you write a functor to do a reduction, you must specify the
|
||||
// type of the reduction result via a public 'value_type' typedef.
|
||||
typedef double value_type;
|
||||
// type of the reduction result via a public 'value_type' alias.
|
||||
using value_type = double;
|
||||
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
void operator()(int i, double& lsum) const {
|
||||
|
||||
Reference in New Issue
Block a user