]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/smpi_bench.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get page size info on win32
[simgrid.git] / src / smpi / smpi_bench.c
index fe8f3b4e0e55d634be11b792616a366045d23937..9bd3882fd93903614f1d8d37c1f3a70552a90f66 100644 (file)
 #include <string.h>
 #include <stdio.h>
 
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi,
                                 "Logging specific to SMPI (benchmarking)");
 
@@ -240,11 +244,11 @@ int smpi_gettimeofday(struct timeval *tv)
   return 0;
 }
 
-extern double sg_maxmin_precision;
+extern double sg_surf_precision;
 unsigned long long smpi_rastro_resolution (void)
 {
   smpi_bench_end();
-  double resolution = (1/sg_maxmin_precision);
+  double resolution = (1/sg_surf_precision);
   smpi_bench_begin();
   return (unsigned long long)resolution;
 }