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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Collective Communication:<br />

Gather<br />

MPI_GATHER (sendbuf, sendcount, sendtype, recvbuf,<br />

recvcount, recvtype, root, comm, ierr)<br />

› Receive arguments are only meaningful at the root<br />

› recvcount is the number <strong>of</strong> elements received from each<br />

process<br />

› Data received at root in rank order<br />

› Root can use MPI_IN_PLACE for sendbuf:<br />

• data is assumed to be in the correct place in the recvbuf<br />

P1 = root<br />

P2<br />

P3<br />

P2<br />

MPI_GATHER<br />

root<br />

<strong>David</strong> <strong>Cronk</strong> 90

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

Saved successfully!

Ooh no, something went wrong!