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.

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

◆ 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

Member Data Documentation

◆ kernel

◆ reduction_op

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

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