- Remove kruft from ptl.h, move some into ptl/base/base.h
- Add shell for base ptl selection routine This commit was SVN r606.
Этот коммит содержится в:
родитель
15a0a8e537
Коммит
38cc1daf72
@ -9,6 +9,7 @@ noinst_LTLIBRARIES = libmca_mpi_ptl_base.la
|
||||
# Source code files
|
||||
|
||||
headers = \
|
||||
base.h \
|
||||
ptl_base_comm.h \
|
||||
ptl_base_fragment.h \
|
||||
ptl_base_header.h \
|
||||
@ -26,6 +27,7 @@ libmca_mpi_ptl_base_la_SOURCES = \
|
||||
ptl_base_open.c \
|
||||
ptl_base_recvfrag.c \
|
||||
ptl_base_recvreq.c \
|
||||
ptl_base_select.c \
|
||||
ptl_base_sendfrag.c \
|
||||
ptl_base_sendreq.c
|
||||
|
||||
|
34
src/mca/mpi/ptl/base/base.h
Обычный файл
34
src/mca/mpi/ptl/base/base.h
Обычный файл
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#ifndef MCA_PTL_BASE_H
|
||||
#define MCA_PTL_BASE_H
|
||||
|
||||
#include "lam_config.h"
|
||||
|
||||
#include "mca/mca.h"
|
||||
#include "mca/mpi/ptl/ptl.h"
|
||||
|
||||
|
||||
/*
|
||||
* Global functions for MCA: overall PTL open and close
|
||||
*/
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
int mca_ptl_base_open(void);
|
||||
int mca_ptl_base_select(lam_list_t *available);
|
||||
int mca_ptl_base_close(void);
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
extern int mca_ptl_base_output;
|
||||
extern lam_list_t mca_ptl_base_modules_available;
|
||||
|
||||
#endif /* MCA_PTL_BASE_H */
|
@ -5,12 +5,12 @@
|
||||
#include "lam_config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lam/constants.h"
|
||||
#include "mca/mca.h"
|
||||
#include "mca/lam/base/base.h"
|
||||
#include "mca/mpi/ptl/ptl.h"
|
||||
#include "mca/mpi/ptl/base/base.h"
|
||||
|
||||
|
||||
int mca_ptl_base_close(void)
|
||||
|
@ -5,12 +5,11 @@
|
||||
#include "lam_config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mca/mca.h"
|
||||
#include "mca/lam/base/base.h"
|
||||
#include "mca/mpi/ptl/ptl.h"
|
||||
#include "mca/mpi/ptl/base/base.h"
|
||||
|
||||
|
||||
/*
|
||||
@ -26,9 +25,7 @@
|
||||
* Global variables
|
||||
*/
|
||||
int mca_ptl_base_output = -1;
|
||||
mca_ptl_t mca_ptl;
|
||||
lam_list_t mca_ptl_base_modules_available;
|
||||
mca_ptl_base_module_t mca_ptl_base_selected_module;
|
||||
|
||||
|
||||
/**
|
||||
|
17
src/mca/mpi/ptl/base/ptl_base_select.c
Обычный файл
17
src/mca/mpi/ptl/base/ptl_base_select.c
Обычный файл
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#include "lam_config.h"
|
||||
|
||||
#include "mca/mca.h"
|
||||
#include "mca/mpi/ptl/ptl.h"
|
||||
#include "mca/mpi/ptl/base/base.h"
|
||||
|
||||
|
||||
int mca_ptl_base_select(lam_list_t *selected)
|
||||
{
|
||||
/* All done */
|
||||
|
||||
return LAM_SUCCESS;
|
||||
}
|
@ -155,25 +155,12 @@ struct mca_ptl_t {
|
||||
typedef struct mca_ptl_t mca_ptl_t;
|
||||
|
||||
/*
|
||||
* Global functions for MCA: overall PTL open and close
|
||||
* Macro for use in modules that are of type ptl v1.0.0
|
||||
*/
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
int mca_ptl_base_open(void);
|
||||
int mca_ptl_base_init(void);
|
||||
int mca_ptl_base_close(void);
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
extern int mca_ptl_base_output;
|
||||
extern lam_list_t mca_ptl_base_modules_available;
|
||||
extern mca_ptl_base_module_t mca_ptl_base_selected_module;
|
||||
extern mca_ptl_t mca_ptl;
|
||||
#define MCA_PTL_BASE_VERSION_1_0_0 \
|
||||
/* coll v1.0 is chained to MCA v1.0 */ \
|
||||
MCA_BASE_VERSION_1_0_0, \
|
||||
/* ptl v1.0 */ \
|
||||
"ptl", 1, 0, 0
|
||||
|
||||
#endif /* LAM_MCA_PTL_H */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user