1 | Actually in our MatMul program, nobody needs to call MPI_CART_COORDS |
2 | since they each know their i,j position, but each processor should |
3 | call MPI_CART_RANK to get a (possibly new) myrank. |
4 | One can also define subgroups that form lower-dimensional cartesian subgrids. In our case, we want to define the concept of "rows", so that we can shift along rows. |