We don't provide a mechanism for determining the node number - never came up
before as you can use gethostname to find out what node you are on.
We do provide an envar that tells you the process rank within the node:
OMPI_COMM_WORLD_LOCAL_RANK is what you are probably looking for.
On Jan 26, 2
Say, I run a parallel program using MPI. Execution command
mpirun -n 8 -npernode 2
launches 8 processes in total. That is 2 processes per node and 4
nodes in total. (OpenMPI 1.5). Where a node comprises 1 CPU (dual
core) and network interconnect between nodes is InfiniBand.
Now, the rank number