Interleaving data


Up: Datatypes and Heterogenity Next: An interleaved datatype Previous: Structures revisited

By moving the UB inside the data, you can interleave data.

Consider the matrix

We wish to send 0-3,8-11,16-19, and 24-27 to process 0, 4-7,12-15,20-23, and 28-31 to process 1, etc. How can we do this with MPI_Scatterv?



Up: Datatypes and Heterogenity Next: An interleaved datatype Previous: Structures revisited