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. | |
Host-side range-based reduction operator.
This operator applies a binary operation to entire ranges using std::ranges::transform.
| T | The element type. |
| Op | The binary operation type (e.g., std::plus<T>). |
Definition at line 222 of file allreduce.hpp.
|
inline |
Apply the reduction operator to the packed data ranges.
| left | The left Buffer that will be combined. |
| right | The right Buffer updated with the left operand. |
Definition at line 231 of file allreduce.hpp.