Sorry - guess I had misunderstood. Yes, if all you want is the local rank of your own process, then this will work.
My suggestion was if you wanted the list of local procs, or to know the local rank of your peers.
On Dec 10, 2010, at 1:24 PM, David Mathog wrote:
> Ashley Pittman wrote:
>> For a much simpler approach you could also use these two environment
> variables, this is on my current system which is 1.5 based, YMMV of course.
> That is simpler. It works on OMPI 1.4.3 too:
> cat >/usr/common/bin/dumpev.sh <<EOD
> mpirun -np 4 --host monkey01 --mca plm_rsh_agent rsh
> /usr/common/bin/dumpenv.sh | grep LOCAL_RANK
> David Mathog
> Manager, Sequence Analysis Facility, Biology Division, Caltech
> users mailing list