#include <SimpleReducer.h>
Create a SimpleReducer. At each operation, a barrier wait is performed, and the operation will be performed to compute the global balue. name should be a static string which describes the primitive for debugging purposes.
double max |
( |
int |
myrank, |
|
|
int |
numThreads, |
|
|
double |
mymax |
|
) |
| |
Performs a global max over all of the threads. As soon as each thread has called max with their local max, each thread will return the same global max.
double min |
( |
int |
myrank, |
|
|
int |
numThreads, |
|
|
double |
mymax |
|
) |
| |
Performs a global min over all of the threads. As soon as each thread has called min with their local max, each thread will return the same global max.
double sum |
( |
int |
myrank, |
|
|
int |
numThreads, |
|
|
double |
mysum |
|
) |
| |
Performs a global sum over all of the threads. As soon as each thread has called sum with their local sum, each thread will return the same global sum.
The documentation for this class was generated from the following file: