diff --git a/cs677/hw4/src/transpose.cc b/cs677/hw4/src/transpose.cc index 584af5a..5a80917 100644 --- a/cs677/hw4/src/transpose.cc +++ b/cs677/hw4/src/transpose.cc @@ -2,6 +2,7 @@ #include #include #include +#include /* usleep() */ using namespace std; /* @@ -101,7 +102,9 @@ int main(int argc, char * argv[]) printMatrix(&matrix[0][0], n, n); cout << endl; } - MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ + MPI_Barrier(MPI_COMM_WORLD); /* for printing coherently */ + usleep(100000); + MPI_Barrier(MPI_COMM_WORLD); } /* Populate the displacements array */ @@ -145,7 +148,9 @@ int main(int argc, char * argv[]) printMatrix(&matrix[0][0], n, n); cout << endl; } - MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ + MPI_Barrier(MPI_COMM_WORLD); /* for printing coherently */ + usleep(100000); + MPI_Barrier(MPI_COMM_WORLD); } MPI_Finalize();