Name

TAU_PROFILE_GET_NODE — Returns the measurement system's node id

Synopsis

C/C++:

TAU_PROFILE_GET_NODE(node);
int node;

Fortran:

TAU_PROFILE_GET_NODE(node);
integer node;

Description

TAU_PROFILE_GET_NODE gives the node id for the processes in which it is called. When using MPI node id is the same as MPI rank.

Example

C/C++ :

int main (int argc, char **argv) {
	int nodeid;
  TAU_PROFILE_GET_NODE(nodeid);
  return 0;
}
    

Fortran :

     PROGRAM SUM_OF_CUBES
      INTEGER :: N
      call TAU_PROFILE_GET_NODE(N)
      END PROGRAM SUM_OF_CUBES
    

Python:

import pytau

pytau.setNode(0)