2005-05-24 02:06:50 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-24 20:38:08 +04:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-05-24 02:06:50 +04:00
|
|
|
* 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.
|
2006-09-27 17:24:42 +04:00
|
|
|
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
|
2005-05-24 02:06:50 +04:00
|
|
|
* $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"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "ompi/mca/btl/btl.h"
|
2005-05-24 02:06:50 +04:00
|
|
|
|
2007-05-16 19:46:52 +04:00
|
|
|
BEGIN_C_DECLS
|
2005-05-24 02:06:50 +04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
2006-08-24 20:38:08 +04:00
|
|
|
OMPI_DECLSPEC 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);
|
2006-03-17 21:46:48 +03:00
|
|
|
OMPI_DECLSPEC void mca_btl_base_dump(
|
|
|
|
struct mca_btl_base_module_t*,
|
|
|
|
struct mca_btl_base_endpoint_t*,
|
|
|
|
int verbose);
|
2007-05-17 11:54:27 +04:00
|
|
|
OMPI_DECLSPEC int mca_btl_base_param_register(mca_base_component_t *version,
|
|
|
|
mca_btl_base_module_t *module);
|
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;
|
2007-05-16 19:46:52 +04:00
|
|
|
extern char* mca_btl_base_include;
|
|
|
|
extern char* mca_btl_base_exclude;
|
|
|
|
extern int mca_btl_base_warn_component_unused;
|
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
|
|
|
|
2007-05-16 19:46:52 +04:00
|
|
|
END_C_DECLS
|
|
|
|
|
2005-06-30 09:50:55 +04:00
|
|
|
#endif /* MCA_BTL_BASE_H */
|