Device-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. | |
Device-side range-based reduction operator.
This operator applies a binary operation to entire ranges using thrust::transform.
| T | The element type. |
| Op | The binary operation type (e.g., cuda::std::plus<T>). |
Definition at line 271 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 280 of file allreduce.hpp.