Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow insertion of time inside gettimeofday and clock_gettime
[simgrid.git] / src / smpi / internals / smpi_global.cpp
index 84c818a..0c5d88a 100644 (file)
@@ -95,7 +95,7 @@ MPI_Errhandler *MPI_ERRHANDLER_NULL = nullptr;
 // No instance gets manually created; check also the smpirun.in script as
 // this default name is used there as well (when the <actor> tag is generated).
 static const std::string smpi_default_instance_name("smpirun");
-static simgrid::config::Flag<double> smpi_wtime_sleep(
+XBT_PRIVATE simgrid::config::Flag<double> smpi_wtime_sleep(
   "smpi/wtime", "Minimum time to inject inside a call to MPI_Wtime", 0.0);
 static simgrid::config::Flag<double> smpi_init_sleep(
   "smpi/init", "Time to inject inside a call to MPI_Init", 0.0);
@@ -431,8 +431,10 @@ static int smpi_run_entry_point(smpi_entry_point_type entry_point, std::vector<s
   std::vector<char*>* args4argv = new std::vector<char*>(args.size());
   std::transform(begin(args), end(args), begin(*args4argv), [](const std::string& s) { return xbt_strdup(s.c_str()); });
 
+#if !SMPI_IFORT
   // take a copy of args4argv to keep reference of the allocated strings
   const std::vector<char*> args2str(*args4argv);
+#endif
   int argc = args4argv->size();
   args4argv->push_back(nullptr);
   char** argv = args4argv->data();