Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-11 Thread Jeff Squyres (jsquyres)
Remember that OMPI 1.6.x is our stable series; we're no longer adding new features to it -- only bug fixes. What Ralph described is available on the OMPI SVN trunk HEAD (i.e., what will eventually become the v1.9 series). It may also be available in the upcoming v1.7 series; I'm not sure if

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-11 Thread Kranthi Kumar
Sir, I was following your discussion. Brice Sir's explanation of what I want is correct. Your last reply was asking me to look for ompi_proc_t for the process in the proc_flafs field if I am correct. You said that the defintion of the values will be in opal/mca/hwloc/hwloc.h. I checked in this

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Ralph Castain
I see - I think. The locality of every process is stored on the ompi_proc_t for that process in the proc_flags field. You can find the definition of the values in opal/mca/hwloc/hwloc.h. On Feb 10, 2013, at 1:57 PM, Brice Goglin wrote: > Inside the OMPI

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Brice Goglin
Inside the OMPI implementation. He wants to use locality information for some sort of collective algorithm tuning (or something like that). He needs the locality of all local ranks as far as I understood. I don't know if that's ORTE or not, but that's inside some OMPI component at least. Brice

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Ralph Castain
I honestly have no idea what you mean. Are you talking about inside an MPI application? Do you mean from inside the MPI layer? Inside ORTE? Inside an ORTE daemon? On Feb 10, 2013, at 1:41 PM, Brice Goglin wrote: > What about *inside* OMPI? > > Brice > > > > Le

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Brice Goglin
What about *inside* OMPI? Brice Le 10/02/2013 21:16, Ralph Castain a écrit : > 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

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Brice Goglin
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 :

Re: [OMPI users] how to find the binding of each rank on the local machine

2013-02-10 Thread Ralph Castain
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

[OMPI users] how to find the binding of each rank on the local machine

2013-02-09 Thread Kranthi Kumar
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