MPI.net入门

来源:互联网 发布:关系数据库的基本结构 编辑:程序博客网 时间:2024/05/22 00:07

点对点方法:

发送:

Communicator.world.Send;

接收:

Communicator.world.Receive;

同步方法:

Communicator.world.Barrier();

集中数据:All to one

Communicator.world.Gather();

Communicator.world.Allgather();所有进程都获得一份。

广播数据:one to All

Communicator.world.Broadcast();

Communicator.world.Scatter();从root广播向其他节点广播不同的数据。

All to All:

Communicator.world.Alltoall();两两节点之间都传递数据,包括自身。

Reduce:合操作

Communicator.world.Reduce();从各个节点获得数据,进行计算之后返回给root节点。



原创粉丝点击