Distributed max-reducer for getting the max of some value across multiple hosts.
More...
#include <DReducible.h>
|
| DGReduceMax () |
| Default constructor; initializes everything to 0. More...
|
|
void | update (const Ty rhs) |
| Update the local max-reduced value. More...
|
|
Ty | read_local () |
| Read the local reduced max value; if it has never been reduced, it will attempt get the global value through a reduce (i.e. More...
|
|
Ty | read () |
| Read the global reduced max value. More...
|
|
Ty | reset () |
| Reset this accumulator. More...
|
|
Ty | reduce (std::string runID=std::string()) |
| Do a max reduction across all hosts by sending data to all other hosts and reducing received data. More...
|
|
template<typename Ty>
class galois::DGReduceMax< Ty >
Distributed max-reducer for getting the max of some value across multiple hosts.
- Template Parameters
-
Ty | type of value to max-reduce |
Default constructor; initializes everything to 0.
Read the global reduced max value.
For accurate results, you should call reduce before calling this.
- Returns
- the global value stored in the accumulator
Read the local reduced max value; if it has never been reduced, it will attempt get the global value through a reduce (i.e.
all other hosts should call reduce as well).
- Returns
- the local value stored in the accumulator or a global value if reduce has never been called
Do a max reduction across all hosts by sending data to all other hosts and reducing received data.
- Returns
- the max-reduced value after reducing from all hosts.
Reset this accumulator.
- Returns
- the previous global value stored in this accumulator (note if never reduced, it will be 0
Update the local max-reduced value.
- Parameters
-
rhs | Value to max-reduce locally with |
The documentation for this class was generated from the following file: