X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/febfa21172b9cc827797849be5c0923aa399717f..cd641543689ed33eb33ac4f3905f63d3d6a0d541:/src/simgrid/sg_config.c diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 80df369c3e..63f1a02f30 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -250,9 +250,12 @@ static void _sg_cfg_cb__coll(const char *category, static void _sg_cfg_cb__coll_allgather(const char *name, int pos){ _sg_cfg_cb__coll("allgather", mpi_coll_allgather_description, name, pos); } +static void _sg_cfg_cb__coll_allgatherv(const char *name, int pos){ + _sg_cfg_cb__coll("allgatherv", mpi_coll_allgatherv_description, name, pos); +} static void _sg_cfg_cb__coll_allreduce(const char *name, int pos) { - _sg_cfg_cb__coll("allreduce", mpi_coll_allreduce_description, name, pos); + _sg_cfg_cb__coll("allreduce", mpi_coll_allreduce_description, name, pos); } static void _sg_cfg_cb__coll_alltoall(const char *name, int pos) { @@ -763,6 +766,12 @@ void sg_config_init(int *argc, char **argv) xbt_cfgelm_string, &default_value, 1, 1, &_sg_cfg_cb__coll_allgather, NULL); + default_value = xbt_strdup("default"); + xbt_cfg_register(&_sg_cfg_set, "smpi/allgatherv", + "Which collective to use for allgatherv", + xbt_cfgelm_string, &default_value, 1, 1, &_sg_cfg_cb__coll_allgatherv, + NULL); + default_value = xbt_strdup("default"); xbt_cfg_register(&_sg_cfg_set, "smpi/allreduce", "Which collective to use for allreduce",