Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable SIMIX parallel mode for parmap_{bench,text}.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 29 Oct 2017 21:09:43 +0000 (22:09 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 29 Oct 2017 21:09:43 +0000 (22:09 +0100)
teshsuite/xbt/parmap_bench/parmap_bench.cpp
teshsuite/xbt/parmap_test/parmap_test.cpp

index ce12620..4fbead4 100644 (file)
@@ -131,6 +131,7 @@ int main(int argc, char* argv[])
   XBT_INFO("Parmap benchmark with %d workers (modes = %#x)...", nthreads, modes);
   XBT_INFO("%s", "");
 
+  SIMIX_context_set_nthreads(nthreads);
   fun_to_apply = &fun_small_comp;
 
   XBT_INFO("Benchmark for parmap create+apply+destroy (small comp):");
index e6e209c..2e4416f 100644 (file)
@@ -85,6 +85,7 @@ int main(int argc, char** argv)
   int status = 0;
   xbt_log_control_set("parmap_test.fmt:[%c/%p]%e%m%n");
   MSG_init(&argc, argv);
+  SIMIX_context_set_nthreads(16); // dummy value > 1
 
   XBT_INFO("Basic testing posix");
   status += test_parmap_basic(XBT_PARMAP_POSIX);