Stub out the ibcm CPC.
This commit was SVN r16800.
Этот коммит содержится в:
родитель
8aca6eb31b
Коммит
8c0060701c
@ -55,10 +55,12 @@ sources = \
|
||||
connect/btl_openib_connect_base.c \
|
||||
connect/btl_openib_connect_oob.c \
|
||||
connect/btl_openib_connect_oob.h \
|
||||
connect/btl_openib_connect_xoob.c \
|
||||
connect/btl_openib_connect_xoob.h \
|
||||
connect/btl_openib_connect_xoob.c \
|
||||
connect/btl_openib_connect_xoob.h \
|
||||
connect/btl_openib_connect_rdma_cm.c \
|
||||
connect/btl_openib_connect_rdma_cm.h \
|
||||
connect/btl_openib_connect_ibcm.c \
|
||||
connect/btl_openib_connect_ibcm.h \
|
||||
connect/connect.h
|
||||
|
||||
# Make the output library in this directory, and name it either
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "connect/btl_openib_connect_oob.h"
|
||||
#include "connect/btl_openib_connect_xoob.h"
|
||||
#include "connect/btl_openib_connect_rdma_cm.h"
|
||||
#include "connect/btl_openib_connect_ibcm.h"
|
||||
|
||||
#include "opal/util/argv.h"
|
||||
#include "opal/util/show_help.h"
|
||||
@ -35,6 +36,7 @@ static ompi_btl_openib_connect_base_funcs_t *all[] = {
|
||||
&ompi_btl_openib_connect_oob,
|
||||
&ompi_btl_openib_connect_xoob,
|
||||
&ompi_btl_openib_connect_rdma_cm,
|
||||
&ompi_btl_openib_connect_ibcm,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
56
ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c
Обычный файл
56
ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c
Обычный файл
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Cisco, Inc. All rights reserved.
|
||||
*
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#include "ompi_config.h"
|
||||
|
||||
#include "btl_openib_endpoint.h"
|
||||
#include "connect/connect.h"
|
||||
|
||||
static int ibcm_open(void);
|
||||
static int ibcm_init(void);
|
||||
static int ibcm_connect(mca_btl_base_endpoint_t *e);
|
||||
static int ibcm_finalize(void);
|
||||
|
||||
ompi_btl_openib_connect_base_funcs_t ompi_btl_openib_connect_ibcm = {
|
||||
"ibcm",
|
||||
ibcm_open,
|
||||
ibcm_init,
|
||||
ibcm_connect,
|
||||
ibcm_finalize,
|
||||
};
|
||||
|
||||
static int ibcm_open(void)
|
||||
{
|
||||
mca_base_param_reg_int(&mca_btl_openib_component.super.btl_version,
|
||||
"btl_openib_connect_ibcm_foo",
|
||||
"A dummy help message", false, false,
|
||||
17, NULL);
|
||||
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
static int ibcm_init(void)
|
||||
{
|
||||
printf("ibcm init\n");
|
||||
return OMPI_ERR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
static int ibcm_connect(mca_btl_base_endpoint_t *e)
|
||||
{
|
||||
printf("ibcm connect\n");
|
||||
return OMPI_ERR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
static int ibcm_finalize(void)
|
||||
{
|
||||
printf("ibcm finalize\n");
|
||||
return OMPI_ERR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
20
ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.h
Обычный файл
20
ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.h
Обычный файл
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2007 Cisco, Inc. All rights reserved.
|
||||
*
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#ifndef BTL_OPENIB_CONNECT_IBCM_H
|
||||
#define BTL_OPENIB_CONNECT_IBCM_H
|
||||
|
||||
#include "ompi_config.h"
|
||||
|
||||
#include "connect/connect.h"
|
||||
|
||||
extern ompi_btl_openib_connect_base_funcs_t ompi_btl_openib_connect_ibcm;
|
||||
|
||||
#endif
|
Загрузка…
Ссылка в новой задаче
Block a user