cuda::experimental::stf::slice_reduction_op_sum

Defined in include/cuda/experimental/__stf/stream/interfaces/slice_reduction_ops.cuh

template<typename element_type, size_t dimensions = 1>
class slice_reduction_op_sum : public cuda::experimental::stf::slice_reduction_op<element_type, 1, slice_reduction_op_sum_impl<element_type>>

A sum reduction operator over slices.

Public Types

using instance_t = slice<element_type, dimensions>

Public Functions

inline void op(const instance_t &in, instance_t &inout, const exec_place &e, cudaStream_t s) override

Reconstruct an instance by applying the reduction operator over it and another instance.

inline void init_op(instance_t &out, const exec_place &e, cudaStream_t s) override

Initialize an instance with an appropriate default value for the reduction operator.

inline virtual ~reduction_operator_base()