From: Christian Heinrich Date: Thu, 5 Jul 2018 12:42:27 +0000 (+0200) Subject: [CONFIG] Add smpi/plugin/lb/migration-frequency option X-Git-Tag: v3_21~559^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1caa54629d706bd2b086297bef7e61295755b762 [CONFIG] Add smpi/plugin/lb/migration-frequency option 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). --- diff --git a/src/simgrid/sg_config.cpp b/src/simgrid/sg_config.cpp index c026309c48..415a9c78d1 100644 --- a/src/simgrid/sg_config.cpp +++ b/src/simgrid/sg_config.cpp @@ -446,6 +446,9 @@ void sg_config_init(int *argc, char **argv) simgrid::config::declare_flag("smpi/alltoallv", "Which collective to use for alltoallv", ""); simgrid::config::declare_flag("smpi/bcast", "Which collective to use for bcast", ""); simgrid::config::declare_flag("smpi/reduce", "Which collective to use for reduce", ""); + + simgrid::config::declare_flag("smpi/plugin/lb/migration-frequency", "After how many migrations should the load balancer" + "compute a new mapping?", 10); #endif // HAVE_SMPI /* Others */