LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-04-07 21:05:20


On Sat, 5 Apr 2003 seberino_at_[hidden] wrote:

> It looks one can subdivide all nodes into groups. What is the purpose
> then of having....
>
> mpi_comm_rank as well as mpi_group_rank???
> mpi_comm_size as well as mpi_group_size???

Groups are different than communicators in MPI. A communicator is a group
with a unique context. Hence, you can have the same group in multiple
communicators.

> Are groups and comms interchangeable as arguments to mpi commands???

No.

> I thought they were equal but not I'm not sure.

Check the MPI-1 standard, chapter 5.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/