|
Galois
|
Distributed sum-reducer for getting the sum of some value across multiple hosts. More...
#include <DTerminationDetector.h>
Public Member Functions | |
| DGTerminator () | |
| Default constructor. More... | |
| void | reinitialize () |
| DGTerminator & | operator+= (const Ty &rhs) |
| Adds to accumulated value. More... | |
| void | operator= (const Ty rhs) |
| Sets current value stored in accumulator. More... | |
| void | set (const Ty rhs) |
| Sets current value stored in accumulator. More... | |
| Ty | read_local () |
| Read local accumulated value. More... | |
| Ty | read () |
| Read the value returned by the last reduce call. More... | |
| Ty | reset () |
| Reset the entire accumulator. More... | |
| void | initiate_snapshot () |
| bool | terminate () |
| Ty | reduce (std::string runID=std::string()) |
| Reduce data across all hosts, saves the value, and returns the reduced value. More... | |
Distributed sum-reducer for getting the sum of some value across multiple hosts.
| Ty | type of value to max-reduce |
|
inline |
Default constructor.
|
inline |
|
inline |
Adds to accumulated value.
| rhs | Value to add |
|
inline |
Sets current value stored in accumulator.
| rhs | Value to set |
|
inline |
Read the value returned by the last reduce call.
Should call reduce before calling this function if an up to date value is required
|
inline |
Read local accumulated value.
|
inline |
Reduce data across all hosts, saves the value, and returns the reduced value.
| runID | optional argument used to create a statistics timer for later reporting |
|
inline |
|
inline |
Reset the entire accumulator.
|
inline |
Sets current value stored in accumulator.
| rhs | Value to set |
|
inline |