Youjun Hu
Youjun Hu

Reputation: 1314

Gather arrays of different sizes using MPI_Allgather

MPI_Allgather seems to assume that all arrays to be gathered from different processes are of the the same size. However, in my case, the arrays to be gathered are of different size in different processes. For this case, what is the proper subroutine to use? Is it MPI_Allgatherv?

Upvotes: 1

Views: 653

Answers (1)

Zulan
Zulan

Reputation: 22660

Yes, the correct function is MPI_Allgatherv.

Upvotes: 2

Related Questions