Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add the MPI_Wtick function to smpi to allow compilation with IRS benchmark (returns...
authorAugustin Degomme <degomme@idpann.imag.fr>
Wed, 19 Sep 2012 13:24:06 +0000 (15:24 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Wed, 19 Sep 2012 13:51:11 +0000 (15:51 +0200)
include/smpi/smpi.h
src/smpi/smpi_mpi.c
src/smpi/smpi_pmpi.c

index bba6c24..e9b100c 100644 (file)
@@ -162,7 +162,7 @@ MPI_CALL(XBT_PUBLIC(int), MPI_Query_thread, (int *provided));
 MPI_CALL(XBT_PUBLIC(int), MPI_Is_thread_main, (int *flag));
 MPI_CALL(XBT_PUBLIC(int), MPI_Abort, (MPI_Comm comm, int errorcode));
 MPI_CALL(XBT_PUBLIC(double), MPI_Wtime, (void));
-
+MPI_CALL(XBT_PUBLIC(double), MPI_Wtick,(void));
 MPI_CALL(XBT_PUBLIC(int), MPI_Address, (void *location, MPI_Aint * address));
 
 MPI_CALL(XBT_PUBLIC(int), MPI_Type_free, (MPI_Datatype * datatype));
index d86fcd8..483bbf5 100644 (file)
@@ -46,6 +46,11 @@ double MPI_Wtime(void)
   return PMPI_Wtime();
 }
 
+double MPI_Wtick(void)
+{
+  return PMPI_Wtick();
+}
+
 int MPI_Address(void *location, MPI_Aint * address)
 {
   return PMPI_Address(location, address);
index 54464cb..2f6a8c1 100644 (file)
@@ -110,6 +110,11 @@ double PMPI_Wtime(void)
   smpi_bench_begin();
   return time;
 }
+extern double sg_maxmin_precision;
+double PMPI_Wtick(void)
+{
+  return sg_maxmin_precision;
+}
 
 int PMPI_Address(void *location, MPI_Aint * address)
 {