Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gettimeofday also needs to update benchmark info.
authormstillwell <mstillwell@griffon-40.nancy.grid5000.fr>
Thu, 24 Nov 2011 15:15:22 +0000 (16:15 +0100)
committermstillwell <mstillwell@griffon-40.nancy.grid5000.fr>
Thu, 24 Nov 2011 15:15:22 +0000 (16:15 +0100)
include/smpi/smpi.h
src/smpi/smpi_bench.c

index a104544..962b134 100644 (file)
@@ -71,6 +71,7 @@ typedef struct {
 } MPI_Status;
 
 #define MPI_STATUS_IGNORE NULL
+#define MPI_STATUSES_IGNORE NULL
 
 #define MPI_DATATYPE_NULL NULL
 extern MPI_Datatype MPI_CHAR;
index a6e7b63..6cad02e 100644 (file)
@@ -177,11 +177,14 @@ unsigned int smpi_sleep(unsigned int secs)
 
 int smpi_gettimeofday(struct timeval *tv, struct timezone *tz)
 {
-  double now = SIMIX_get_clock();
+  double now;
+  smpi_bench_end();
+  now = SIMIX_get_clock();
   if (tv) {
-    tv->tv_sec = (time_t) now;
+    tv->tv_sec = (time_t)now;
     tv->tv_usec = (suseconds_t)((now - tv->tv_sec) * 1e6);
   }
+  smpi_bench_begin();
   return 0;
 }