wiki:mpich/MPI_Recv
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": libsvn_subr-1.so.1: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Version 3 (modified by wade, 18 years ago) (diff)

--

MPI_Recv

Basic receive

Synopsis

#include "mpi.h"
int MPI_Recv( void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status )

Output Parameters

  buf 	  initial address of receive buffer (choice)
  status  status object (Status)

Input Parameters

  count     maximum number of elements in receive buffer (integer)
  datatype  datatype of each receive buffer element (handle)
  source    rank of source (integer)
  tag 	    message tag (integer)
  comm 	    communicator (handle)

Notes

The count argument indicates the maximum length of a message; the actual number can be determined with MPI_Get_count.