Public Member Functions | Public Attributes | List of all members
rapidsmpf::coll::detail::HostOp< T, Op > Struct Template Reference

Host-side range-based reduction operator. More...

#include <allreduce.hpp>

Public Member Functions

void operator() (Buffer const *left, Buffer *right)
 Apply the reduction operator to the packed data ranges. More...
 

Public Attributes

Op op
 The binary reduction operator.
 

Detailed Description

template<typename T, typename Op>
struct rapidsmpf::coll::detail::HostOp< T, Op >

Host-side range-based reduction operator.

This operator applies a binary operation to entire ranges using std::ranges::transform.

Template Parameters
TThe element type.
OpThe binary operation type (e.g., std::plus<T>).

Definition at line 222 of file allreduce.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename Op >
void rapidsmpf::coll::detail::HostOp< T, Op >::operator() ( Buffer const *  left,
Buffer right 
)
inline

Apply the reduction operator to the packed data ranges.

Parameters
leftThe left Buffer that will be combined.
rightThe right Buffer updated with the left operand.

Definition at line 231 of file allreduce.hpp.


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