Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@
# $HEADER$
#

AM_CPPFLAGS = $(grpcomm_brks_CPPFLAGS)
AM_CPPFLAGS = $(grpcomm_brucks_CPPFLAGS)

sources = \
grpcomm_brks.h \
grpcomm_brks.c \
grpcomm_brks_component.c
grpcomm_brucks.h \
grpcomm_brucks_module.c \
grpcomm_brucks_component.c

# Make the output library in this brksory, and name it either
# Make the output library in this brucksory, and name it either
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
# (for static builds).

if MCA_BUILD_orte_grpcomm_brks_DSO
if MCA_BUILD_orte_grpcomm_brucks_DSO
component_noinst =
component_install = mca_grpcomm_brks.la
component_install = mca_grpcomm_brucks.la
else
component_noinst = libmca_grpcomm_brks.la
component_noinst = libmca_grpcomm_brucks.la
component_install =
endif

mcacomponentdir = $(ortelibdir)
mcacomponent_LTLIBRARIES = $(component_install)
mca_grpcomm_brks_la_SOURCES = $(sources)
mca_grpcomm_brks_la_LDFLAGS = -module -avoid-version
mca_grpcomm_brucks_la_SOURCES = $(sources)
mca_grpcomm_brucks_la_LDFLAGS = -module -avoid-version

noinst_LTLIBRARIES = $(component_noinst)
libmca_grpcomm_brks_la_SOURCES =$(sources)
libmca_grpcomm_brks_la_LDFLAGS = -module -avoid-version
libmca_grpcomm_brucks_la_SOURCES =$(sources)
libmca_grpcomm_brucks_la_LDFLAGS = -module -avoid-version
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* $HEADER$
*
*/
#ifndef GRPCOMM_BRKS_H
#define GRPCOMM_BRKS_H
#ifndef GRPCOMM_BRUCKS_H
#define GRPCOMM_BRUCKS_H

#include "orte_config.h"

Expand All @@ -23,8 +23,8 @@ BEGIN_C_DECLS
* Grpcomm interfaces
*/

ORTE_MODULE_DECLSPEC extern orte_grpcomm_base_component_t mca_grpcomm_brks_component;
extern orte_grpcomm_base_module_t orte_grpcomm_brks_module;
ORTE_MODULE_DECLSPEC extern orte_grpcomm_base_component_t mca_grpcomm_brucks_component;
extern orte_grpcomm_base_module_t orte_grpcomm_brucks_module;

END_C_DECLS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,45 @@

#include "orte/util/proc_info.h"

#include "grpcomm_brks.h"
#include "grpcomm_brucks.h"

static int my_priority=5;
static int brks_open(void);
static int brks_close(void);
static int brks_query(mca_base_module_t **module, int *priority);
static int brks_register(void);
static int brucks_open(void);
static int brucks_close(void);
static int brucks_query(mca_base_module_t **module, int *priority);
static int brucks_register(void);

/*
* Struct of function pointers that need to be initialized
*/
orte_grpcomm_base_component_t mca_grpcomm_brks_component = {
orte_grpcomm_base_component_t mca_grpcomm_brucks_component = {
.base_version = {
ORTE_GRPCOMM_BASE_VERSION_3_0_0,

.mca_component_name = "brks",
.mca_component_name = "brucks",
MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
ORTE_RELEASE_VERSION),
.mca_open_component = brks_open,
.mca_close_component = brks_close,
.mca_query_component = brks_query,
.mca_register_component_params = brks_register,
.mca_open_component = brucks_open,
.mca_close_component = brucks_close,
.mca_query_component = brucks_query,
.mca_register_component_params = brucks_register,
},
.base_data = {
/* The component is checkpoint ready */
MCA_BASE_METADATA_PARAM_CHECKPOINT
},
};

static int brks_register(void)
static int brucks_register(void)
{
mca_base_component_t *c = &mca_grpcomm_brks_component.base_version;
mca_base_component_t *c = &mca_grpcomm_brucks_component.base_version;

/* make the priority adjustable so users can select
* brks for use by apps without affecting daemons
* brucks for use by apps without affecting daemons
*/
my_priority = 50;
(void) mca_base_component_var_register(c, "priority",
"Priority of the grpcomm brks component",
"Priority of the grpcomm brucks component",
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
OPAL_INFO_LVL_9,
MCA_BASE_VAR_SCOPE_READONLY,
Expand All @@ -66,19 +66,19 @@ static int brks_register(void)
}

/* Open the component */
static int brks_open(void)
static int brucks_open(void)
{
return ORTE_SUCCESS;
}

static int brks_close(void)
static int brucks_close(void)
{
return ORTE_SUCCESS;
}

static int brks_query(mca_base_module_t **module, int *priority)
static int brucks_query(mca_base_module_t **module, int *priority)
{
*priority = my_priority;
*module = (mca_base_module_t *)&orte_grpcomm_brks_module;
*module = (mca_base_module_t *)&orte_grpcomm_brucks_module;
return ORTE_SUCCESS;
}
Loading