LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Hugh Merz (merz_at_[hidden])
Date: 2005-11-15 13:43:52


> MPI::COMM_WORLD.Reduce(&mypi, &pi, 1, MPI::DOUBLE, MPI::SUM, 0);
> --
> A I have a simple question : in this case, results are combined (reduced) on all the computers ?

No, the reduced result only exists on the process whose rank is specified
as the root process, which is 0 in this case.

See:
  http://www.mpi-forum.org/docs/mpi-11-html/node77.html#Node77

Hugh