o netwotk/weight_S: correction to the weight of competing streams
* Add a long description to the models, that users can see with such
argument on the command line: --cfg=cpu/model:help
+ * --help-models display the long description of all known models
SMPI:
* Implement MPI_Get_count, MPI_MAXLOC, MPI_MINLOC
XBT:
printf("Long description of the %s models accepted by this simulator:\n",category);
for (i = 0; table[i].name; i++)
printf(" %s: %s\n", table[i].name, table[i].description);
- exit(0);
}
int find_model_description(s_surf_model_description_t * table,
!strncmp(argv[i], "--help", strlen("--help") + 1)) {
printf("Description of the configuration accepted by this simulator:\n");
xbt_cfg_help(_surf_cfg_set);
- remove_it = 1;
+ printf("\nYou can also use --help-models to see the details of all models known by this simulator.\n");
+ exit(0);
+ } else if (!strncmp(argv[i], "--help-models", strlen("--help-models")+1)) {
+ model_help("workstation",surf_workstation_model_description);
+ model_help("CPU",surf_cpu_model_description);
+ model_help("network",surf_network_model_description);
exit(0);
}
if (remove_it) { /*remove this from argv */
val = xbt_cfg_get_string(_surf_cfg_set, name);
- if (!strcmp(val,"help"))
+ if (!strcmp(val,"help")) {
model_help("workstation",surf_workstation_model_description);
+ exit(0);
+ }
/* Make sure that the model exists */
find_model_description(surf_workstation_model_description, val);
val = xbt_cfg_get_string(_surf_cfg_set, name);
- if (!strcmp(val,"help"))
+ if (!strcmp(val,"help")) {
model_help("CPU",surf_cpu_model_description);
+ exit(0);
+ }
/* New Module missing */
find_model_description(surf_cpu_model_description, val);
val = xbt_cfg_get_string(_surf_cfg_set, name);
- if (!strcmp(val,"help"))
+ if (!strcmp(val,"help")) {
model_help("network",surf_network_model_description);
+ exit(0);
+ }
/* New Module missing */
find_model_description(surf_network_model_description, val);