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.
OMPI_COMM_WORLD_LOCAL_RANK
OMPI_COMM_WORLD_LOCAL_SIZE
Actually orte seems to set both OMPI_COMM_WORLD_LOCAL_RANK and OMPI_COMM_WORLD_NODE_RANK, I can't see any difference between the two.
Ashley.
On 10 Dec 2010, at 18:25, Ralph Castain wrote:
>
> So if you wanted to get your own local rank, you would call:
>
> my_local_rank = orte_ess.proc_get_local_rank(ORTE_PROC_MY_NAME);
--
Ashley Pittman, Bath, UK.
Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk
|