MPI并行编程资料.pptVIP

  • 19
  • 0
  • 约1.8万字
  • 约 66页
  • 2020-05-24 发布于天津
  • 举报
通信子 (communicator): 一个进程组 (process group)+ 上下文 (context). 进程组 : 是进程的有限有序集 . 有限意味着 , 在一个进程组中 , 进程的个数 n 是有限的 , 这里的 n 称为进程组的大小 (group size). 有序意味着 n 个进程是按整数 0, 1, ..., n-1 进行编号的 . 一个进程在一个通信子 ( 组 ) 中用它的编号进行标识 . 组的 大小和进程编号可以通过调用以下的 MPI 例程获得 : MPI_Comm_size(communicator, group_size) MPI_Comm_rank(communicator, my_rank) 什么是通信子 ? 2 MPI 中的消息信封 MPI_Send (address, count, datatype, destination, tag, communicator ) 例 7 通信子的使用 2 MPI 中的消息信封 Process 0: MPI_Send(msg1, count1, MPI_INT, 1, tag1 , comm1); parallel_fft(...); Process 1: MPI_Recv(msg1, count1,

文档评论(0)

1亿VIP精品文档

相关文档