1
1

Per 1/7/2014 telecon: Add an MCA param to turn on all warnings for missing excluded interfaces.

Refs trac:4019

This commit was SVN r30146.

The following Trac tickets were found above:
  Ticket 4019 --> https://svn.open-mpi.org/trac/ompi/ticket/4019
Этот коммит содержится в:
Ralph Castain 2014-01-08 00:21:25 +00:00
родитель 13b29cff2c
Коммит e2ca265f40
2 изменённых файлов: 14 добавлений и 1 удалений

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

@ -96,6 +96,11 @@ struct mca_btl_tcp_component_t {
/* If btl_tcp_if_seq was specified, this is the one interface
(name) that we're supposed to use. */
char *tcp_if_seq;
/* do we want to warn on all excluded interfaces
* that are not found?
*/
bool report_all_unfound_interfaces;
};
typedef struct mca_btl_tcp_component_t mca_btl_tcp_component_t;

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

@ -272,6 +272,14 @@ static int mca_btl_tcp_component_register(void)
free(message);
#endif
mca_btl_tcp_component.report_all_unfound_interfaces = false;
(void) mca_base_component_var_register(&mca_btl_tcp_component.super.btl_version,
"warn_all_unfound_interfaces",
"Issue a warning for all unfound interfaces included in if_exclude",
MCA_BASE_VAR_TYPE_BOOL,
NULL, 0, 0, OPAL_INFO_LVL_5,
MCA_BASE_VAR_SCOPE_READONLY, &mca_btl_tcp_component.report_all_unfound_interfaces);
mca_btl_tcp_module.super.btl_exclusivity = MCA_BTL_EXCLUSIVITY_LOW + 100;
mca_btl_tcp_module.super.btl_eager_limit = 64*1024;
mca_btl_tcp_module.super.btl_rndv_eager_limit = 64*1024;
@ -572,7 +580,7 @@ static char **split_and_resolve(char **orig_str, char *name, bool reqd)
/* If we didn't find a match, keep trying */
if (if_index < 0) {
if (reqd) {
if (reqd || mca_btl_tcp_component.report_all_unfound_interfaces) {
opal_show_help("help-mpi-btl-tcp.txt", "invalid if_inexclude",
true, name, ompi_process_info.nodename, tmp,
"Did not find interface matching this subnet");