[mpich2-dev] translating process ranks
Darius Buntinas
buntinas at mcs.anl.gov
Wed Dec 15 16:35:05 CST 2010
If you want to do this from inside the library you can do it this way:
MPIDI_VC_t *vc;
MPIDI_Comm_get_vc(comm, rank, &vc);
comm_world_rank = vc->pg_rank;
-d
On Dec 15, 2010, at 3:49 PM, David Fiala wrote:
> Thomas,
>
> I've found that using the combination of MPI_Comm_group with
> MPI_Group_translate_ranks works for this purpose.
>
> -David Fiala
>
> On Wed, Dec 15, 2010 at 4:43 PM, Thomas Ropars <thomas.ropars at inria.fr> wrote:
>> Hi,
>>
>> Is there a function in mpich2 that can takes as input a communicator and a
>> rank provides as output the rank of the process in MPI_COMM_WORLD?
>> If not, what would be the easiest way to do it ?
>>
>> Regards,
>> Thomas
>>
More information about the mpich2-dev
mailing list