29.01.2015 Views

Dr. David Cronk Innovative Computing Lab University of ... - It works!

Dr. David Cronk Innovative Computing Lab University of ... - It works!

Dr. David Cronk Innovative Computing Lab University of ... - It works!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Collective Communication:<br />

Allgatherv<br />

MPI_ALLGATHERV (sendbuf, sendcount,<br />

sendtype, recvbuf, recvcounts, displs,<br />

recvtype, comm, ierr)<br />

› Same as MPI_GATHERV, except all processes<br />

get the result<br />

› MPI_IN_PLACE may be used for sendbuf <strong>of</strong> all<br />

processors<br />

› Similar to a gatherv followed by a bcast<br />

• If there are “holes” in the receive buffer, bcast would<br />

overwrite the “holes”<br />

• displs need not be the same on each PE<br />

<strong>David</strong> <strong>Cronk</strong> 102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!