From: Gabriel Corona Date: Thu, 11 Sep 2014 10:10:56 +0000 (+0200) Subject: [smpi] Restore privatisation mapping smpi_execute() X-Git-Tag: v3_12~841 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b9fd9b1287c4c2d3cb469f00289347962a015b05 [smpi] Restore privatisation mapping smpi_execute() smpi_execute() calls a the host_execution simcall which might generate a process switch. After this, we might not have the correct SMPI privatisation region: we have to rectore it. The correct privatisation mapping is needed by some code between smpi_bench_end() and smpi_bench_begin(). --- diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 393c8505ea..7207e64837 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -160,6 +160,7 @@ void smpi_execute_flops(double flops) { simcall_set_category (action, TRACE_internal_smpi_get_category()); #endif simcall_host_execution_wait(action); + smpi_switch_data_segment(smpi_process_index()); } void smpi_execute(double duration)