Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[CONFIG] Add smpi/plugin/lb/migration-frequency option
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 5 Jul 2018 12:42:27 +0000 (14:42 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 5 Jul 2018 13:21:15 +0000 (15:21 +0200)
This needs to be moved to the plugin file, but unfortunately, when the
smpirun command is parsed, the plugin is not yet initialized and hence
an error is thrown (since this option is not yet known).

src/simgrid/sg_config.cpp

index c026309..415a9c7 100644 (file)
@@ -446,6 +446,9 @@ void sg_config_init(int *argc, char **argv)
   simgrid::config::declare_flag<std::string>("smpi/alltoallv", "Which collective to use for alltoallv", "");
   simgrid::config::declare_flag<std::string>("smpi/bcast", "Which collective to use for bcast", "");
   simgrid::config::declare_flag<std::string>("smpi/reduce", "Which collective to use for reduce", "");
+
+  simgrid::config::declare_flag<int>("smpi/plugin/lb/migration-frequency", "After how many migrations should the load balancer"
+                                                        "compute a new mapping?", 10);
 #endif // HAVE_SMPI
 
   /* Others */