Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
replace explicit smpi_sleep calls I introduced in some examples by sleep ones
authorAugustin Degomme <degomme@idpann.imag.fr>
Wed, 31 Oct 2012 15:51:35 +0000 (16:51 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Wed, 31 Oct 2012 15:51:35 +0000 (16:51 +0100)
teshsuite/smpi/mpich-test/env/runtests
teshsuite/smpi/mpich-test/env/timertest.c
teshsuite/smpi/mpich-test/pt2pt/order.c
teshsuite/smpi/mpich-test/pt2pt/runtests
teshsuite/smpi/mpich-test/pt2pt/sendorder.c
teshsuite/smpi/mpich-test/pt2pt/waitall2.c
teshsuite/smpi/mpich-test/pt2pt/waitall3.c
teshsuite/smpi/mpich-test/pt2pt/waitall4.c

index d4c6d15..3ee7e01 100755 (executable)
@@ -79,7 +79,7 @@ fi
 #
 testfiles=""
 if [ $runtests = 1 ] ; then
-#replaced sleep by smpi_sleep to avoid problems with real/simulation powers
+
 #RunTest timers 1 "*** Timer tests ***"
 
 RunTest init 2 "*** MPI_Initialized tests ***"
index a77d290..04f49fc 100644 (file)
@@ -22,7 +22,7 @@ int main( int argc, char **argv )
     for (i = 0; i < 5; i++)
     {
        t1 = MPI_Wtime();
-       smpi_sleep(1);
+       sleep(1);
        t2 = MPI_Wtime();
        fprintf( stdout, "%f seconds\n", t2 - t1 );
     } 
index 2701dd3..1b8f3a9 100644 (file)
@@ -57,7 +57,7 @@ for this test.\n" );
     else
     {
        MPI_Wtime();
-       smpi_sleep(easy);
+       sleep(easy);
   //while (MPI_Wtime() - t1 < easy) ;
        a = 1;
        b = 2;
index e275fcc..2661ae2 100755 (executable)
@@ -259,7 +259,6 @@ RunTest nblock 4 "*** Testing Isend/Irecv (large numbers) ***"
 
 RunTest sendmany 8 "*** Testing Send (many procs) ***"
 
-# ... replaced by smpi_sleep calls
 RunTest order 2 "*** Testing Recv ordering ***"
 
 RunTest sendorder 2 "**** Checking Message Ordering ****"
index b95c16e..e6e3f08 100644 (file)
@@ -24,7 +24,7 @@ void delay( int ms )
   double  deltat = ms * 0.001;
   MPI_Wtime();
   //while (MPI_Wtime() - t < deltat) ;
-  smpi_sleep(deltat);
+  sleep(deltat);
 }
 
 void CheckStatus( MPI_Status *status, int tag, int src, int cnt, int *err )
index 4811e56..fbcee83 100644 (file)
@@ -18,7 +18,7 @@ void Pause( double );
 void Pause( double sec )
 {
   /*double t1 =*/ MPI_Wtime();
-  smpi_sleep(sec);
+  sleep(sec);
 //while (MPI_Wtime() - t1 < sec) ;
 }
 
index 0b76a88..cdd13f8 100644 (file)
@@ -20,7 +20,7 @@ void Pause( double );
 void Pause( double sec )
 {
   /*double t1 =*/ MPI_Wtime();
-smpi_sleep(sec);
+  sleep(sec);
 //  while (MPI_Wtime() - t1 < sec) ;
 }
 
index bb4dc1d..24d9ea4 100644 (file)
@@ -21,7 +21,7 @@ void Pause( double );
 void Pause( double sec )
 {
   /*double t1 =*/ MPI_Wtime();
-  smpi_sleep(sec);
+  sleep(sec);
 //  while (MPI_Wtime() - t1 < sec) ;
 }