From 21cfbd35a4b7c5e0d7cd20574ab04f7ebe26440e Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 23 Nov 2008 16:07:41 +0000 Subject: [PATCH] updated git-svn-id: svn://anubis/gvsu@255 45c1a28c-8058-47b2-ae61-ca45b979098e --- cs677/hw4/src/transpose.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();