/* callback of the mpi collectives: simply check that this is a valid name. It will be picked up in smpi_global.cpp */ static void _check_coll(const char *category, s_mpi_coll_description_t * table, const char *name) { xbt_assert(_sg_cfg_init_status < 2, "Cannot change the collective algorithm after the initialization"); char *val = xbt_cfg_get_string(name); if (val && !strcmp(val, "help")) { coll_help(category, table); sg_cfg_exit_early(); } find_coll_description(table, val, category); }
/* callback of the mpi collectives */ static void _sg_cfg_cb__coll(const char *category, s_mpi_coll_description_t * table, const char *name, int pos) { char *val; xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization"); val = xbt_cfg_get_string(_sg_cfg_set, name); if (!strcmp(val, "help")) { coll_help(category, table); sg_cfg_exit_early(); } /* New Module missing */ find_coll_description(table, val, category); }