Minor updates.
This commit was SVN r24791.
Этот коммит содержится в:
родитель
42e16da551
Коммит
3d8ef08912
@ -1,2 +1,3 @@
|
|||||||
twoodall
|
twoodall
|
||||||
gshipman
|
gshipman
|
||||||
|
jsquyres
|
||||||
|
@ -97,12 +97,12 @@ int mca_btl_template_add_procs(
|
|||||||
/*
|
/*
|
||||||
* Check to make sure that the peer has at least as many interface
|
* Check to make sure that the peer has at least as many interface
|
||||||
* addresses exported as we are trying to use. If not, then
|
* addresses exported as we are trying to use. If not, then
|
||||||
* don't bind this PTL instance to the proc.
|
* don't bind this BTL instance to the proc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OPAL_THREAD_LOCK(&template_proc->proc_lock);
|
OPAL_THREAD_LOCK(&template_proc->proc_lock);
|
||||||
|
|
||||||
/* The btl_proc datastructure is shared by all TEMPLATE PTL
|
/* The btl_proc datastructure is shared by all TEMPLATE BTL
|
||||||
* instances that are trying to reach this destination.
|
* instances that are trying to reach this destination.
|
||||||
* Cache the peer instance on the btl_proc.
|
* Cache the peer instance on the btl_proc.
|
||||||
*/
|
*/
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*/
|
*/
|
||||||
#ifndef MCA_PTL_TEMPLATE_H
|
#ifndef MCA_BTL_TEMPLATE_H
|
||||||
#define MCA_PTL_TEMPLATE_H
|
#define MCA_BTL_TEMPLATE_H
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -97,16 +97,6 @@ typedef struct mca_btl_template_module_t mca_btl_template_module_t;
|
|||||||
extern mca_btl_template_module_t mca_btl_template_module;
|
extern mca_btl_template_module_t mca_btl_template_module;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register TEMPLATE component parameters with the MCA framework
|
|
||||||
*/
|
|
||||||
extern int mca_btl_template_component_open(void);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Any final cleanup before being unloaded.
|
|
||||||
*/
|
|
||||||
extern int mca_btl_template_component_close(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TEMPLATE component initialization.
|
* TEMPLATE component initialization.
|
||||||
*
|
*
|
||||||
|
@ -28,6 +28,23 @@
|
|||||||
#include "btl_template_frag.h"
|
#include "btl_template_frag.h"
|
||||||
#include "btl_template_endpoint.h"
|
#include "btl_template_endpoint.h"
|
||||||
#include "ompi/mca/btl/base/base.h"
|
#include "ompi/mca/btl/base/base.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register any MCA parameters associated with this component
|
||||||
|
*/
|
||||||
|
static int mca_btl_template_component_register(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make initial determination whether this component can run or not
|
||||||
|
*/
|
||||||
|
static int mca_btl_template_component_open(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Any final cleanup before being unloaded.
|
||||||
|
*/
|
||||||
|
static int mca_btl_template_component_close(void);
|
||||||
|
|
||||||
|
|
||||||
mca_btl_template_component_t mca_btl_template_component = {
|
mca_btl_template_component_t mca_btl_template_component = {
|
||||||
{
|
{
|
||||||
/* First, the mca_base_component_t struct containing meta information
|
/* First, the mca_base_component_t struct containing meta information
|
||||||
@ -41,7 +58,9 @@ mca_btl_template_component_t mca_btl_template_component = {
|
|||||||
OMPI_MINOR_VERSION, /* MCA component minor version */
|
OMPI_MINOR_VERSION, /* MCA component minor version */
|
||||||
OMPI_RELEASE_VERSION, /* MCA component release version */
|
OMPI_RELEASE_VERSION, /* MCA component release version */
|
||||||
mca_btl_template_component_open, /* component open */
|
mca_btl_template_component_open, /* component open */
|
||||||
mca_btl_template_component_close /* component close */
|
mca_btl_template_component_close, /* component close */
|
||||||
|
NULL, /* component query */
|
||||||
|
mca_btl_template_component_register, /* component register */
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
/* The component is not checkpoint ready */
|
/* The component is not checkpoint ready */
|
||||||
@ -63,7 +82,7 @@ static inline char* mca_btl_template_param_register_string(
|
|||||||
const char* default_value)
|
const char* default_value)
|
||||||
{
|
{
|
||||||
char *param_value;
|
char *param_value;
|
||||||
int id = mca_base_param_register_string("btl","ib",param_name,NULL,default_value);
|
int id = mca_base_param_register_string("btl","template",param_name,NULL,default_value);
|
||||||
mca_base_param_lookup_string(id, ¶m_value);
|
mca_base_param_lookup_string(id, ¶m_value);
|
||||||
return param_value;
|
return param_value;
|
||||||
}
|
}
|
||||||
@ -72,21 +91,19 @@ static inline int mca_btl_template_param_register_int(
|
|||||||
const char* param_name,
|
const char* param_name,
|
||||||
int default_value)
|
int default_value)
|
||||||
{
|
{
|
||||||
int id = mca_base_param_register_int("btl","ib",param_name,NULL,default_value);
|
int id = mca_base_param_register_int("btl","template",param_name,NULL,default_value);
|
||||||
int param_value = default_value;
|
int param_value = default_value;
|
||||||
mca_base_param_lookup_int(id,¶m_value);
|
mca_base_param_lookup_int(id,¶m_value);
|
||||||
return param_value;
|
return param_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
static int mca_btl_template_component_open(void)
|
||||||
* Called by MCA framework to open the component, registers
|
|
||||||
* component parameters.
|
|
||||||
*/
|
|
||||||
|
|
||||||
int mca_btl_template_component_open(void)
|
|
||||||
{
|
{
|
||||||
|
return OMPI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int mca_btl_template_component_register(void)
|
||||||
|
{
|
||||||
/* initialize state */
|
/* initialize state */
|
||||||
mca_btl_template_component.template_num_btls=0;
|
mca_btl_template_component.template_num_btls=0;
|
||||||
mca_btl_template_component.template_btls=NULL;
|
mca_btl_template_component.template_btls=NULL;
|
||||||
@ -126,7 +143,7 @@ int mca_btl_template_component_open(void)
|
|||||||
* component cleanup - sanity checking of queue lengths
|
* component cleanup - sanity checking of queue lengths
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int mca_btl_template_component_close(void)
|
static int mca_btl_template_component_close(void)
|
||||||
{
|
{
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user