Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX must be initialized now to use parmaps.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 16 May 2013 15:30:17 +0000 (17:30 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 16 May 2013 15:30:23 +0000 (17:30 +0200)
testsuite/xbt/parmap_bench.c

index d63bfc3..e95d77d 100644 (file)
@@ -4,6 +4,7 @@
 #include <xbt/parmap.h>
 #include <xbt/sysdep.h>
 #include <internal_config.h>        /* HAVE_FUTEX_H */
+#include "simgrid/simix.h"
 #include "xbt/xbt_os_time.h"
 
 #define MODES_DEFAULT 0x7
@@ -166,6 +167,8 @@ int main(int argc, char *argv[])
   int nthreads;
   unsigned modes = MODES_DEFAULT;
 
+  SIMIX_global_init(&argc, argv);
+
   if (argc != 2 && argc != 3) {
     fprintf(stderr,
             "Usage: %s nthreads [modes]\n"