From: Arnaud Giersch Date: Sun, 29 Oct 2017 21:09:43 +0000 (+0100) Subject: Enable SIMIX parallel mode for parmap_{bench,text}. X-Git-Tag: v3.18~356 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e6c138f2e253f244fffd9bcb0fcabbdef8b2dfde?hp=de0f6810fd81d481ea3f0b943b759d9581fbbc88 Enable SIMIX parallel mode for parmap_{bench,text}. --- diff --git a/teshsuite/xbt/parmap_bench/parmap_bench.cpp b/teshsuite/xbt/parmap_bench/parmap_bench.cpp index ce1262055c..4fbead41ae 100644 --- a/teshsuite/xbt/parmap_bench/parmap_bench.cpp +++ b/teshsuite/xbt/parmap_bench/parmap_bench.cpp @@ -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):"); diff --git a/teshsuite/xbt/parmap_test/parmap_test.cpp b/teshsuite/xbt/parmap_test/parmap_test.cpp index e6e209c58a..2e4416f5d8 100644 --- a/teshsuite/xbt/parmap_test/parmap_test.cpp +++ b/teshsuite/xbt/parmap_test/parmap_test.cpp @@ -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);