2005-05-24 02:06:50 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
#ifndef MCA_BMI_BASE_H
|
|
|
|
#define MCA_BMI_BASE_H
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include "class/ompi_list.h"
|
|
|
|
#include "mca/mca.h"
|
2005-06-30 06:08:24 +04:00
|
|
|
#include "mca/btl/btl.h"
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-06-30 06:08:24 +04:00
|
|
|
struct mca_btl_base_selected_module_t {
|
2005-05-24 02:06:50 +04:00
|
|
|
ompi_list_item_t super;
|
2005-06-30 06:08:24 +04:00
|
|
|
mca_btl_base_component_t *btl_component;
|
|
|
|
mca_btl_base_module_t *btl_module;
|
2005-05-24 02:06:50 +04:00
|
|
|
};
|
2005-06-30 06:08:24 +04:00
|
|
|
typedef struct mca_btl_base_selected_module_t mca_btl_base_selected_module_t;
|
2005-05-24 02:06:50 +04:00
|
|
|
|
2005-06-21 23:38:50 +04:00
|
|
|
|
2005-06-30 06:08:24 +04:00
|
|
|
/* holds the recv call back function to be called by the btl on
|
2005-06-21 23:38:50 +04:00
|
|
|
* a receive.
|
|
|
|
*/
|
2005-06-30 06:08:24 +04:00
|
|
|
struct mca_btl_base_recv_reg_t {
|
|
|
|
mca_btl_base_module_recv_cb_fn_t cbfunc;
|
2005-06-21 23:38:50 +04:00
|
|
|
void* cbdata;
|
|
|
|
};
|
2005-06-30 06:08:24 +04:00
|
|
|
typedef struct mca_btl_base_recv_reg_t mca_btl_base_recv_reg_t;
|
2005-06-21 23:38:50 +04:00
|
|
|
|
|
|
|
|
2005-06-30 06:08:24 +04:00
|
|
|
OBJ_CLASS_DECLARATION(mca_btl_base_selected_module_t);
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Global functions for MCA: overall BMI open and close
|
|
|
|
*/
|
|
|
|
|
2005-06-30 06:08:24 +04:00
|
|
|
OMPI_DECLSPEC int mca_btl_base_open(void);
|
|
|
|
OMPI_DECLSPEC int mca_btl_base_select(bool enable_progress_threads, bool enable_mpi_threads);
|
|
|
|
OMPI_DECLSPEC int mca_btl_base_close(void);
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Globals
|
|
|
|
*/
|
2005-06-30 06:08:24 +04:00
|
|
|
OMPI_DECLSPEC extern int mca_btl_base_output;
|
|
|
|
OMPI_DECLSPEC extern char* mca_btl_base_include;
|
|
|
|
OMPI_DECLSPEC extern char* mca_btl_base_exclude;
|
|
|
|
OMPI_DECLSPEC extern ompi_list_t mca_btl_base_components_opened;
|
|
|
|
OMPI_DECLSPEC extern ompi_list_t mca_btl_base_modules_initialized;
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* MCA_BMI_BASE_H */
|