MPI Reduction

profileStudent_@001
homework.txt

Given a set of five unsigned, eight-bit integers with decimal values 37, 53, 71, 89, and 129, determine the decimal result of the following reductions:(use MPI reduction) a. add b. multiply c. maximum d. minimum e. bitwise or f. bitwise and g. logical or h. logical and NOTE: syntax for MPI reduction is: MPI_Reduce ( void *operand, /* addr of 1st reduction element */ void *result, /* addr of 1st reduction result */ int count, /* reductions to perform */ MPI_Datatype type, / * type of elements */ MPI _Op operator, /* reduction operator */ int root, /* process getting result(s) */ MPI_Comm comm) /* communicator */