diff --git a/cs677/hw4/src/transpose.cc b/cs677/hw4/src/transpose.cc index f97ff5d..584af5a 100644 --- a/cs677/hw4/src/transpose.cc +++ b/cs677/hw4/src/transpose.cc @@ -96,7 +96,11 @@ int main(int argc, char * argv[]) for (int i = 0; i < p; i++) { if (my_rank == i) + { + cout << "Process " << i << " matrix:" << endl; printMatrix(&matrix[0][0], n, n); + cout << endl; + } MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ } @@ -136,7 +140,11 @@ int main(int argc, char * argv[]) for (int i = 0; i < p; i++) { if (my_rank == i) + { + cout << "Process " << i << " matrix:" << endl; printMatrix(&matrix[0][0], n, n); + cout << endl; + } MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ }