wiki:mpich/MPI_Comm_rank
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Version 1 (modified by wade, 18 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