Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] how to find the binding of each rank on the local machine
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-02-10 15:16:41


There is no MPI standard call to get the binding. He could try to use the MPI extensions, depending on which version of OMPI he's using. It is in v1.6 and above.

See "man OMPI_Affinity_str" for details (assuming you included the OMPI man pages in your MANPATH), or look at it online at

http://www.open-mpi.org/doc/v1.6/man3/OMPI_Affinity_str.3.php

Remember, you have to configure with --enable-mpi-ext in order to enable the extensions.

On Feb 10, 2013, at 12:08 AM, Brice Goglin <Brice.Goglin_at_[hidden]> wrote:

> I've been talking with Kranthi offline, he wants to use locality info
> inside OMPI. He needs the binding info from *inside* MPI. From 10
> thousands feet, it looks like communicator->rank[X]->locality_info as a
> hwloc object or as a hwloc bitmap.
>
> Brice
>
>
>
> Le 10/02/2013 06:07, Ralph Castain a écrit :
>> Add --report-bindings to the mpirun cmd line
>>
>> Remember, we do not bind processes by default, so you will need to include something about the binding to use (by core, by socket, etc.) on the cmd line
>>
>> See "mpirun -h" for the options
>>
>> On Feb 9, 2013, at 8:46 PM, Kranthi Kumar <kranthipls_at_[hidden]> wrote:
>>
>>> Hello Sir,
>>>
>>> I need a way to find out where each rank runs from inside the implementation?
>>> How do I know the binding of each rank in an MPI application?
>>>
>>> Thank You
>>> --
>>> Kranthi _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users