wiki:mpich/MPI_Send

Version 4 (modified by wade, 16 years ago) (diff)

--

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.