1
1

Have ompi_info output a better error message when a requested framework cannot be found, either because it doesn't exist or support wasn't configured into OMPI.

This commit was SVN r22030.
Этот коммит содержится в:
Ralph Castain 2009-09-29 13:56:14 +00:00
родитель 5673b230d7
Коммит 47285fe221
2 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -43,3 +43,15 @@ Aborting...
*** Value: "%s"
*** Max length: %d
**************************************************************************
#
[not-found]
The specified framework could not be found:
Framework: %s
This could be due to a misspelling of the framework name, or because support
for that framework was not configured into this version of OMPI. Please see
ompi_info --config
for a full report of how OMPI was configured.

Просмотреть файл

@ -138,7 +138,7 @@ void ompi_info_do_params(bool want_all_in, bool want_internal)
if (!found) {
char *usage = opal_cmd_line_get_usage_msg(ompi_info_cmd_line);
orte_show_help("help-ompi_info.txt", "usage", true, usage);
orte_show_help("help-ompi_info.txt", "not-found", true, type);
free(usage);
exit(1);
}