Always initialize the base output stream, but only set verbose if requested.
Otherwise, the PLS components have pay more attention to debugging streams than the rest of the OMPI source code This commit was SVN r11922.
Этот коммит содержится в:
родитель
13b25a732a
Коммит
9807a38458
@ -55,16 +55,9 @@ int orte_pls_base_open(void)
|
||||
{
|
||||
int param, value;
|
||||
|
||||
/* Debugging / verbose output */
|
||||
|
||||
param = mca_base_param_reg_int_name("pls_base", "verbose",
|
||||
"Verbosity level for the pls framework",
|
||||
false, false, 0, &value);
|
||||
if (value != 0) {
|
||||
orte_pls_base.pls_output = opal_output_open(NULL);
|
||||
} else {
|
||||
orte_pls_base.pls_output = -1;
|
||||
}
|
||||
/* Debugging / verbose output. Always have stream open, with
|
||||
verbose set by the mca open system... */
|
||||
orte_pls_base.pls_output = opal_output_open(NULL);
|
||||
|
||||
/* init selected to be false */
|
||||
orte_pls_base.selected = false;
|
||||
@ -77,7 +70,7 @@ int orte_pls_base_open(void)
|
||||
&orte_pls_base.available_components, true)) {
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
|
||||
|
||||
/* All done */
|
||||
|
||||
return ORTE_SUCCESS;
|
||||
|
@ -47,8 +47,8 @@ int orte_pls_base_select(void)
|
||||
item = opal_list_get_next(item)) {
|
||||
cli = (mca_base_component_list_item_t *) item;
|
||||
component = (orte_pls_base_component_t *) cli->cli_component;
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
"orte:base:open: querying component %s",
|
||||
opal_output_verbose(10, orte_pls_base.pls_output,
|
||||
"orte:base:select: querying component %s",
|
||||
component->pls_version.mca_component_name);
|
||||
|
||||
/* Call the component's init function and see if it wants to be
|
||||
@ -75,8 +75,8 @@ int orte_pls_base_select(void)
|
||||
/* update the best priority */
|
||||
best_priority = priority;
|
||||
} else {
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
"orte:base:open: component %s does NOT want to be considered for selection",
|
||||
opal_output_verbose(10, orte_pls_base.pls_output,
|
||||
"orte:base:select: component %s does NOT want to be considered for selection",
|
||||
component->pls_version.mca_component_name);
|
||||
if (NULL == module->finalize) {
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
|
@ -150,7 +150,7 @@ orte_pls_base_module_t *orte_pls_gridengine_component_init(int *priority)
|
||||
|
||||
if (NULL != getenv("SGE_ROOT") && NULL != getenv("ARC") &&
|
||||
NULL != getenv("PE_HOSTFILE") && NULL != getenv("JOB_ID")) {
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
opal_output_verbose(10, orte_pls_base.pls_output,
|
||||
"pls:gridengine: available for selection");
|
||||
|
||||
/* ensure the receive gets posted */
|
||||
@ -161,7 +161,7 @@ orte_pls_base_module_t *orte_pls_gridengine_component_init(int *priority)
|
||||
*priority = mca_pls_gridengine_component.priority;
|
||||
return &orte_pls_gridengine_module;
|
||||
}
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
opal_output_verbose(10, orte_pls_base.pls_output,
|
||||
"pls:gridengine: NOT available for selection");
|
||||
return NULL;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ static orte_pls_base_module_t *pls_tm_init(int *priority)
|
||||
|
||||
/* Sadly, no */
|
||||
|
||||
opal_output(orte_pls_base.pls_output,
|
||||
"pls:tm: NOT available for selection");
|
||||
opal_output_verbose(10, orte_pls_base.pls_output,
|
||||
"pls:tm: NOT available for selection");
|
||||
return NULL;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user