Are you doing this just for debugging?  Or you really want to do it within the 
MPI program?

orte-ps

Gives you the pid/host for each rank, but I don't think there is any standard 
way to do this via API.

Brock Palen
www.umich.edu/~brockp
CAEN Advanced Computing
XSEDE Campus Champion
bro...@umich.edu
(734)936-1985



> On Nov 25, 2014, at 5:38 PM, Ralph Castain <r...@open-mpi.org> wrote:
> 
> Every process has a complete map of where every process in the job is located 
> - not sure if there is an MPI API for accessing it, though.
> 
> 
>> On Nov 25, 2014, at 2:32 PM, Teranishi, Keita <knte...@sandia.gov> wrote:
>> 
>> Hi,
>> 
>> I am trying  to figure out a way for each local MPI rank to identify the 
>> ranks located in physically remote nodes (just different nodes) of cluster 
>> or MPPs such as Cray.  I am using MPI_Get_processor_name to get the node ID, 
>> but it requires some processing to map MPI rank to the node ID.  Is there 
>> any better ways doing this using MPI-2.2 (or earlier) capabilities?   It 
>> will be great if I can easily get a list of MPI ranks in the same physical 
>> node.  
>> 
>> Thanks,
>> -----------------------------------------------------------------------------
>> Keita Teranishi
>> Principal Member of Technical Staff
>> Scalable Modeling and Analysis Systems
>> Sandia National Laboratories
>> Livermore, CA 94551
>> +1 (925) 294-3738
>> 
>> _______________________________________________
>> users mailing list
>> us...@open-mpi.org
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
>> Link to this post: 
>> http://www.open-mpi.org/community/lists/users/2014/11/25868.php
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2014/11/25869.php

Reply via email to