MPI_Gather(), MPI_Scatter()中发送计数和接收计数有什么区别?
In MPI_Gather(), MPI_Scatter() what is the difference between send count and receive count?
在 MPI 收集和分散中,发送和接收有两个计数。我检查了文档,发现两者应该具有相同的值。
Ex:- 在 MPI_Gather()
中,send_count
和 receive_count
都应具有发送缓冲区大小。 https://www.mpich.org/static/docs/v3.1/www3/MPI_Gather.html
谁能解释一下这个冗余参数的用途是什么?
在某种程度上,您可以使用不同的类型 - 但总大小需要匹配。
或者更准确地说,the standard解释说:
The type signature of sendcount
, sendtype
on each process must be
equal to the type signature of recvcount
, recvtype
at the root. This
implies that the amount of data sent must be equal to the amount of
data received, pairwise between each process and the root. Distinct
type maps between sender and receiver are still allowed.
在 MPI 收集和分散中,发送和接收有两个计数。我检查了文档,发现两者应该具有相同的值。
Ex:- 在 MPI_Gather()
中,send_count
和 receive_count
都应具有发送缓冲区大小。 https://www.mpich.org/static/docs/v3.1/www3/MPI_Gather.html
谁能解释一下这个冗余参数的用途是什么?
在某种程度上,您可以使用不同的类型 - 但总大小需要匹配。
或者更准确地说,the standard解释说:
The type signature of
sendcount
,sendtype
on each process must be equal to the type signature ofrecvcount
,recvtype
at the root. This implies that the amount of data sent must be equal to the amount of data received, pairwise between each process and the root. Distinct type maps between sender and receiver are still allowed.