48 MPI基本的发送/接受

BACKWARD FORWARD


从而基本的(阻塞)发送已变成:

MPI_Send( start, count, datatype, dest, tag, comm )

接受:

MPI_Recv(start, count, datatype, source, tag, comm, status)

源、标识、和实际上接受的消息的计数可以从status中获取。

两个简单的集合操作:

MPI_Bcast(start, count, datatype, root, comm)

MPI_Reduce(start, result, count, datatype, operation, root, comm)


Copyright: NPACT BACKWARD FORWARD