08_1_MPI_Comm_Data_Distributions
08_1_MPI_Comm_Data_Distributions
Distributions
unpredictable output!!
• Processes are competing for stdout
• Result: non-determinism!
Assume:
all processes use the operator MPI_SUM
Collective
Point-to-Point
Amount of data
going to each
process
All arguments are important for the source process (process 0 in our case)
For all other processes, only recv_buf_p, recv_count, recv_type, src_proc,
and comm are important
Copyright © 2010, Elsevier Inc. All rights Reserved 43
Reading and distributing a vector
send_buf_p
is not used except by the sender.
correct
Must have at least communicator size * send_count elements
i-th component of y
Dot product of the ith
row of A with x.
Serial pseudo-code
stored as