Reduction operation





In this example, an array of integers is distributed among processors. The program performs the reduction operation(summation) of data distributed over processes, and brings the result to the root process.


MPI_Reduce description 

  • Choose either one of the following Fortran or C example
  • and complete the missing arguments for the call to MPI_Reduce.