正在加载图片...
Sending in a Ring The sample program that takes data from process zero and sends it to all of the other processes by sending it in a ring. That is, process i should receive the data and send it to process 1+1, until the last process is reached Assume that the data consists of a single integer Process zero reads the data from the user You may want to use these mpi routines in your solution MP Send. MP RecvSending in a Ring • The sample program that takes data from process zero and sends it to all of the other processes by sending it in a ring. That is, process i should receive the data and send it to process i+1, until the last process is reached. • Assume that the data consists of a single integer. Process zero reads the data from the user. • You may want to use these MPI routines in your solution: MPI_Send, MPI_Recv
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有