wiki:mpich/MPI_Send

MPI_Send

MPI_Send ((void *)&data, icount, DATA_TYPE, idest, itag, MPI_COMM_WORLD)

parameter

data 要送出去的資料起點,可以是純量 (scalar) 或陣列 (array)資料。
icount 要送出去的資料數量,當icount的值大於一時,data必須是陣列。
DATA_TYPE 要送出去的資料類別,MPI內定的資料類別。
idest 是收受資料的CPU id。
itag 要送出去的資料標籤。
MPI_COMM_WORLD 通信域。

MPI_Send

Performs a basic send

Synopsis

  #include "mpi.h"
  int MPI_Send( void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm )

Input Parameters

  buf 	    initial address of send buffer (choice)
  count     number of elements in send buffer (nonnegative integer)
  datatype  datatype of each send buffer element (handle)
  dest 	    rank of destination (integer)
  tag 	    message tag (integer)
  comm 	    communicator (handle)

Notes

This routine may block until the message is received.

Example

mpich/point_to_point/demo1

Last modified 16 years ago Last modified on Apr 2, 2008, 3:15:26 PM