2012-09-12 20:47:47 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Cisco Systems, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
|
|
|
#include "common_verbs.h"
|
|
|
|
|
2013-03-27 21:09:41 +00:00
|
|
|
#include "opal/mca/base/mca_base_var.h"
|
|
|
|
|
2012-09-12 20:47:47 +00:00
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
static bool registered = false;
|
|
|
|
static int warn_nonexistent_if_index = -1;
|
|
|
|
|
|
|
|
bool ompi_common_verbs_warn_nonexistent_if = true;
|
|
|
|
|
|
|
|
static void register_internal(void)
|
|
|
|
{
|
2013-03-27 21:09:41 +00:00
|
|
|
ompi_common_verbs_warn_nonexistent_if = true;
|
2012-09-12 20:47:47 +00:00
|
|
|
warn_nonexistent_if_index =
|
2013-03-27 21:09:41 +00:00
|
|
|
mca_base_var_register("ompi", "ompi_common", "verbs", "warn_nonexistent_if",
|
|
|
|
"Warn if non-existent devices and/or ports are specified in device include/exclude MCA parameters "
|
|
|
|
"(0 = do not warn; any other value = warn)",
|
|
|
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
|
|
|
|
OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_LOCAL,
|
|
|
|
&ompi_common_verbs_warn_nonexistent_if);
|
2012-09-12 20:47:47 +00:00
|
|
|
|
|
|
|
registered = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ompi_common_verbs_mca_register(mca_base_component_t *component)
|
|
|
|
{
|
|
|
|
if (!registered) {
|
|
|
|
register_internal();
|
|
|
|
}
|
|
|
|
|
2013-03-27 21:09:41 +00:00
|
|
|
/* Make synonym for the common_verbs MCA params. */
|
|
|
|
mca_base_var_register_synonym(warn_nonexistent_if_index, "ompi", component->mca_type_name,
|
|
|
|
component->mca_component_name, "warn_nonexistent_if", 0);
|
2012-09-12 20:47:47 +00:00
|
|
|
}
|