ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Reduction::KokkosReducer< ResultType, Kernel > Class Template Reference

Custom reduction in the form required by Kokkos. More...

#include <particle_reduction.hpp>

Public Types

using value_type = ResultType
 

Public Member Functions

 KokkosReducer (Kernel kernel, ReductionOp< ResultType > reduction_op)
 
 KokkosReducer (KokkosReducer const &other)
 
KOKKOS_INLINE_FUNCTION void operator() (std::integral auto const i, value_type &update) const
 
KOKKOS_INLINE_FUNCTION void join (value_type &dst, value_type const &src) const
 

Public Attributes

ReductionOp< ResultTypereduction_op
 
Kernel kernel
 

Detailed Description

template<typename ResultType, typename Kernel>
class Reduction::KokkosReducer< ResultType, Kernel >

Custom reduction in the form required by Kokkos.

Definition at line 49 of file particle_reduction.hpp.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ KokkosReducer() [1/2]

Reduction::KokkosReducer< ResultType, Kernel >::KokkosReducer ( Kernel  kernel,
ReductionOp< ResultType reduction_op 
)
inline

Definition at line 62 of file particle_reduction.hpp.

◆ KokkosReducer() [2/2]

Definition at line 64 of file particle_reduction.hpp.

Member Function Documentation

◆ join()

◆ operator()()

Member Data Documentation

◆ kernel

◆ reduction_op


The documentation for this class was generated from the following file: