We had a workshop yesterday and there were some questions about why things are done in a particular way for the MPI example
Why the use of comm.Barrier()
Why do count_item = comm.scatter(counts, root=0) when you know there is no useful information to scatter?
These kinds of lines in the example are done quite deliberately and point to some of the intricacies of MPI, we should probably make more effort to explain why we need to use them.
We had a workshop yesterday and there were some questions about why things are done in a particular way for the MPI example
comm.Barrier()
count_item = comm.scatter(counts, root=0)
when you know there is no useful information to scatter?These kinds of lines in the example are done quite deliberately and point to some of the intricacies of MPI, we should probably make more effort to explain why we need to use them.