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
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.
> 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 mailing list
> users mailing list