wiki:mpich/MPI_Comm_rank

Version 1 (modified by wade, 17 years ago) (diff)

--

MPI_Comm_rank

Determines the rank of the calling process in the communicator

Synopsis

#include "mpi.h"
int MPI_Comm_rank ( MPI_Comm comm, int *rank )

Input Parameters

comm  communicator (handle) 

Output Parameter

rank  rank of the calling process in group of comm (integer) 

Example

mpich/point_to_point/demo1