Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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

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]
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
> _______________________________________________
> users mailing list
> users_at_[hidden]