Newsgroups: comp.parallel.mpi
From: Jean-Paul Dzisiak <JP.Dzisiak@ulg.ac.be>
Subject: [Q] MPI: ranks in a MPMD model...
Organization: Environment Center - ULg
Date: Thu, 12 Feb 1998 09:13:21 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <34E2AF20.2D83FABA@ulg.ac.be>

Hello !

I'm learning MPI and I have a question:

How could I know the rank number of a specific process in a Communicator
?

For example, I start "a.out", "b.out" and "c.out"

In a particular code (let's say "c.out"), how could I know that "a.out"
has a rank
number equal to 0, "b.out" has rank number equal to 1, and so on ... ?

May be an MPI_ALLGATHER ? where each process send its (<rank>,<argv[0])
to
the process # 0 ?

Thanks in advance...

Jep


