Fixed trac #409 by adding a new MCA parameter named
btl_base_warn_component_unused. This commit was SVN r11844.
Этот коммит содержится в:
родитель
860788ff8f
Коммит
d228784fa8
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -70,6 +71,7 @@ OMPI_DECLSPEC void mca_btl_base_dump(
|
|||||||
OMPI_DECLSPEC extern int mca_btl_base_output;
|
OMPI_DECLSPEC extern int mca_btl_base_output;
|
||||||
OMPI_DECLSPEC extern char* mca_btl_base_include;
|
OMPI_DECLSPEC extern char* mca_btl_base_include;
|
||||||
OMPI_DECLSPEC extern char* mca_btl_base_exclude;
|
OMPI_DECLSPEC extern char* mca_btl_base_exclude;
|
||||||
|
OMPI_DECLSPEC extern int mca_btl_base_warn_component_unused;
|
||||||
OMPI_DECLSPEC extern opal_list_t mca_btl_base_components_opened;
|
OMPI_DECLSPEC extern opal_list_t mca_btl_base_components_opened;
|
||||||
OMPI_DECLSPEC extern opal_list_t mca_btl_base_modules_initialized;
|
OMPI_DECLSPEC extern opal_list_t mca_btl_base_modules_initialized;
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -56,6 +57,8 @@ void mca_btl_base_error_no_nics(const char* transport,
|
|||||||
const char* nic_name)
|
const char* nic_name)
|
||||||
{
|
{
|
||||||
char *procid;
|
char *procid;
|
||||||
|
if (mca_btl_base_warn_component_unused) {
|
||||||
|
/* print out no-nic warning if user told us to */
|
||||||
asprintf(&procid, "[%lu,%lu,%lu]",
|
asprintf(&procid, "[%lu,%lu,%lu]",
|
||||||
ORTE_NAME_ARGS(orte_process_info.my_name));
|
ORTE_NAME_ARGS(orte_process_info.my_name));
|
||||||
|
|
||||||
@ -63,6 +66,7 @@ void mca_btl_base_error_no_nics(const char* transport,
|
|||||||
true, procid, transport, orte_system_info.nodename,
|
true, procid, transport, orte_system_info.nodename,
|
||||||
nic_name);
|
nic_name);
|
||||||
free(procid);
|
free(procid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -69,6 +70,7 @@ OBJ_CLASS_INSTANCE(
|
|||||||
int mca_btl_base_output = -1;
|
int mca_btl_base_output = -1;
|
||||||
char* mca_btl_base_include = NULL;
|
char* mca_btl_base_include = NULL;
|
||||||
char* mca_btl_base_exclude = NULL;
|
char* mca_btl_base_exclude = NULL;
|
||||||
|
int mca_btl_base_warn_component_unused = 1;
|
||||||
opal_list_t mca_btl_base_components_opened;
|
opal_list_t mca_btl_base_components_opened;
|
||||||
opal_list_t mca_btl_base_modules_initialized;
|
opal_list_t mca_btl_base_modules_initialized;
|
||||||
|
|
||||||
@ -110,6 +112,9 @@ int mca_btl_base_open(void)
|
|||||||
mca_base_param_register_string("btl","base","include",NULL,NULL), &mca_btl_base_include);
|
mca_base_param_register_string("btl","base","include",NULL,NULL), &mca_btl_base_include);
|
||||||
mca_base_param_lookup_string(
|
mca_base_param_lookup_string(
|
||||||
mca_base_param_register_string("btl","base","exclude",NULL,NULL), &mca_btl_base_exclude);
|
mca_base_param_register_string("btl","base","exclude",NULL,NULL), &mca_btl_base_exclude);
|
||||||
|
mca_base_param_reg_int_name("btl", "base_warn_component_unused",
|
||||||
|
"This parameter is used to turn on warning messages when certain NICs are not used",
|
||||||
|
false, false, 1, &mca_btl_base_warn_component_unused);
|
||||||
|
|
||||||
/* All done */
|
/* All done */
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user