August 2015
Intermediate to advanced
286 pages
5h 42m
English
The Alltoall collective communication combines the scatter and gather functionality. In mpi4py, there are three types of Alltoall collective communication:
comm .Alltoall(sendbuf, recvbuf): The all-to-all scatter/gather sends data from all-to-all processes in a groupcomm.Alltoallv(sendbuf, recvbuf): The all-to-all scatter/gather vector sends data from all-to-all processes in a group, providing different amount of data and displacementscomm.Alltoallw(sendbuf, recvbuf): Generalized all-to-all communication allows different counts, displacements, and datatypes for each partnerIn the following example, we'll see a mpi4py implementation of comm.Alltoall. We consider a communicator group of processes, ...
Read now
Unlock full access