1
1
openmpi/ompi/mca/common/netpatterns/common_netpatterns_base.c
Pavel Shamis b89f8fabc9 Adding Hierarchical Collectives project to the Open MPI trunk.
The project includes following components and frameworks: 
- ML Collective component
- NETPATTERNS and COMMPATTERNS common components
- BCOL framework
- SBGP framework

Note: By default the ML collective component is disabled. In order to enable
new collectives user should bump up the priority of ml component (coll_ml_priority)

=============================================

Primary Contributors (in alphabetical order):

Ishai Rabinovich (Mellanox)
Joshua S. Ladd (ORNL / Mellanox)
Manjunath Gorentla Venkata (ORNL)
Mike Dubman (Mellanox)
Noam Bloch (Mellanox)
Pavel (Pasha) Shamis (ORNL / Mellanox)
Richard Graham (ORNL / Mellanox)
Vasily Filipov (Mellanox)

This commit was SVN r27078.
2012-08-16 19:11:35 +00:00

54 строки
1.4 KiB
C

/*
*
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
* Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "opal/mca/base/mca_base_param.h"
#include "ompi/include/ompi/constants.h"
#include "common_netpatterns.h"
int ompi_common_netpatterns_base_verbose = 0; /* disabled by default */
int ompi_common_netpatterns_register_mca_params(void)
{
mca_base_param_reg_int_name("common",
"netpatterns_base_verbose",
"Verbosity level of the NETPATTERNS framework",
false, false,
0,
&ompi_common_netpatterns_base_verbose);
return OMPI_SUCCESS;
}
int ompi_common_netpatterns_base_err(const char* fmt, ...)
{
va_list list;
int ret;
va_start(list, fmt);
ret = vfprintf(stderr, fmt, list);
va_end(list);
return ret;
}
int ompi_common_netpatterns_init(void)
{
/* There is no component for common_netpatterns so every component that uses it
should call ompi_common_netpatterns_init, still we want to run it only once */
static int was_called = 0;
if (0 == was_called) {
was_called = 1;
return ompi_common_netpatterns_register_mca_params();
}
return OMPI_SUCCESS;
}