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
|
|
|
|
*/
|
2005-06-30 09:50:55 +04:00
|
|
|
#ifndef MCA_BTL_BASE_H
|
|
|
|
#define MCA_BTL_BASE_H
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
#include "ompi_config.h"
|
2005-07-03 20:22:16 +04:00
|
|
|
#include "opal/class/opal_list.h"
|
2005-05-24 02:06:50 +04:00
|
|
|
#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-07-03 20:22:16 +04:00
|
|
|
opal_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
|
|
|
|
|
|
|
/*
|
2005-06-30 09:50:55 +04:00
|
|
|
* Global functions for MCA: overall BTL open and close
|
2005-05-24 02:06:50 +04:00
|
|
|
*/
|
|
|
|
|
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;
|
2005-07-03 20:22:16 +04:00
|
|
|
OMPI_DECLSPEC extern opal_list_t mca_btl_base_components_opened;
|
|
|
|
OMPI_DECLSPEC extern opal_list_t mca_btl_base_modules_initialized;
|
2005-05-24 02:06:50 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2005-06-30 09:50:55 +04:00
|
|
|
#endif /* MCA_BTL_BASE_H */
|