ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Reduction::KokkosReducer< ResultType, Kernel, Reduction > 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, Reduction reduction_op)
void operator() (std::integral auto const i, value_type &update) const
void join (value_type &dst, value_type const &src) const

Public Attributes

Reduction reduction_op
Kernel kernel

Detailed Description

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

Custom reduction in the form required by Kokkos.

Definition at line 36 of file particle_reduction.hpp.

Member Typedef Documentation

◆ value_type

template<typename ResultType, class Kernel, class Reduction>
using Reduction::KokkosReducer< ResultType, Kernel, Reduction >::value_type = ResultType

Definition at line 40 of file particle_reduction.hpp.

Constructor & Destructor Documentation

◆ KokkosReducer()

template<typename ResultType, class Kernel, class Reduction>
Reduction::KokkosReducer< ResultType, Kernel, Reduction >::KokkosReducer ( Kernel kernel,
Reduction reduction_op )
inline

Definition at line 49 of file particle_reduction.hpp.

References kernel, and reduction_op.

Member Function Documentation

◆ join()

template<typename ResultType, class Kernel, class Reduction>
void Reduction::KokkosReducer< ResultType, Kernel, Reduction >::join ( value_type & dst,
value_type const & src ) const
inline

Definition at line 59 of file particle_reduction.hpp.

References reduction_op.

◆ operator()()

template<typename ResultType, class Kernel, class Reduction>
void Reduction::KokkosReducer< ResultType, Kernel, Reduction >::operator() ( std::integral auto const i,
value_type & update ) const
inline

Definition at line 52 of file particle_reduction.hpp.

References kernel.

Member Data Documentation

◆ kernel

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

Definition at line 48 of file particle_reduction.hpp.

Referenced by KokkosReducer(), and operator()().

◆ reduction_op

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

Definition at line 47 of file particle_reduction.hpp.

Referenced by join(), and KokkosReducer().


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