LAM/MPI logo

MPI binding for MPI_COMM_RANK

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_COMM_RANK(comm, rank)
[ IN comm] communicator (handle)
[ OUT rank] rank of the calling process in group of comm (integer)


C Binding

int MPI_Comm_rank(MPI_Comm comm, int *rank)

FORTRAN Binding

MPI_COMM_RANK(COMM, RANK, IERROR)
INTEGER COMM, RANK, IERROR

C++ Binding
(in the MPI:: namespace)

int Comm::Get_rank() const