Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added condition before smpi_switch_data_seg
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 12 Feb 2016 15:52:33 +0000 (16:52 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 22 Feb 2016 13:57:55 +0000 (14:57 +0100)
This is the case in other files as well and was discussed
with Augustin on 12/02/2016.

src/smpi/smpi_bench.cpp

index ea344a0..695615d 100644 (file)
@@ -184,7 +184,9 @@ void smpi_switch_data_segment(int dest);
 
 void smpi_bench_begin(void)
 {
-  smpi_switch_data_segment(smpi_process_index());
+  if (smpi_privatize_global_variables) {
+    smpi_switch_data_segment(smpi_process_index());
+  }
 
   if (MC_is_active() || MC_record_replay_is_active())
     return;