ccb3f75e8f
This commit was SVN r16114.
61 строка
1.8 KiB
C
61 строка
1.8 KiB
C
/*
|
|
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef __INCLUDE_VPROTOCOL_BASE_H_
|
|
#define __INCLUDE_VPROTOCOL_BASE_H_
|
|
|
|
#include "ompi_config.h"
|
|
#include "ompi/constants.h"
|
|
#include "opal/mca/mca.h"
|
|
#include "../vprotocol.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
OMPI_DECLSPEC int mca_vprotocol_base_open(char *vprotocol_include_list);
|
|
OMPI_DECLSPEC int mca_vprotocol_base_select(bool enable_progress_threads,
|
|
bool enable_mpi_threads);
|
|
OMPI_DECLSPEC int mca_vprotocol_base_parasite(void);
|
|
OMPI_DECLSPEC int mca_vprotocol_base_close(void);
|
|
|
|
OMPI_DECLSPEC extern char *mca_vprotocol_base_include_list;
|
|
OMPI_DECLSPEC extern opal_list_t mca_vprotocol_base_components_available;
|
|
OMPI_DECLSPEC extern mca_vprotocol_base_component_t mca_vprotocol_component;
|
|
OMPI_DECLSPEC extern mca_vprotocol_base_module_t mca_vprotocol;
|
|
|
|
|
|
/* Macro for use in components that are of type vprotocol v1.0.0
|
|
*/
|
|
#define MCA_VPROTOCOL_BASE_VERSION_1_0_0 \
|
|
/* vprotocol v1.0 is chained to MCA v1.0 */ \
|
|
MCA_BASE_VERSION_1_0_0, \
|
|
/* vprotocol v1.0 */ \
|
|
"vprotocol", 1, 0, 0
|
|
|
|
/* Macro to mark an invalid component version (0.0.0). Any component showing
|
|
* that version number will be ignored.
|
|
*/
|
|
#define MCA_VPROTOCOL_BASE_VERSION_0_0_0 \
|
|
/* vprotocol v0.0 is chained to MCA v1.0 */ \
|
|
MCA_BASE_VERSION_1_0_0, \
|
|
/* vprotocol v0.0 */ \
|
|
"vprotocol", 0, 0, 0
|
|
|
|
#define mca_vprotocol_base_selected() ( \
|
|
0 != mca_vprotocol_component.pmlm_version.mca_type_major_version \
|
|
)
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INCLUDE_VPROTOCOL_BASE_H_ */
|