cuda::experimental::stf::stream_reduction_operator

Defined in include/cuda/experimental/__stf/stream/reduction.cuh

template<typename T>
class stream_reduction_operator : public cuda::experimental::stf::stream_reduction_operator_untyped

Helper class to define a reduction operator attached to a type of data instance.

Defining a new operator requires to define the virtual methods op and init_op which respectively initialize a data instance, and apply the reduction operator over two instances.

Subclassed by cuda::experimental::stf::slice_reduction_op< element_type, dimensions, ReduxOp >, cuda::experimental::stf::slice_reduction_op< element_type, 1, slice_reduction_op_sum_impl< element_type > >

Public Functions

inline virtual ~reduction_operator_base()