2007-12-21 09:02:00 +03:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
2004-01-12 00:31:52 +03:00
|
|
|
/*
|
2007-03-17 02:11:45 +03:00
|
|
|
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2007-12-21 09:02:00 +03:00
|
|
|
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-01-12 00:31:52 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_PML_BASE_H
|
|
|
|
#define MCA_PML_BASE_H
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-12 00:31:52 +03:00
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "ompi/mca/pml/pml.h"
|
2009-03-18 00:34:30 +03:00
|
|
|
#include "opal/class/opal_list.h"
|
2007-12-21 09:02:00 +03:00
|
|
|
#include "opal/class/opal_pointer_array.h"
|
2004-01-12 00:31:52 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Global functions for the PML
|
|
|
|
*/
|
|
|
|
|
2007-12-21 09:02:00 +03:00
|
|
|
BEGIN_C_DECLS
|
2007-03-17 02:11:45 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the base priority for a PML wrapper component
|
|
|
|
* If there exists more than one then it is undefined
|
|
|
|
* which one is picked.
|
|
|
|
*/
|
|
|
|
#define PML_SELECT_WRAPPER_PRIORITY -128
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_open(void);
|
2005-01-13 18:30:49 +03:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_progress(void);
|
2005-03-27 17:05:23 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_select(bool enable_progress_threads,
|
|
|
|
bool enable_mpi_threads);
|
2007-02-09 19:38:16 +03:00
|
|
|
/* share in modex the name of the selected component */
|
|
|
|
OMPI_DECLSPEC int mca_pml_base_pml_selected(const char *name);
|
|
|
|
/* verify that all new procs are using the currently selected component */
|
|
|
|
OMPI_DECLSPEC int mca_pml_base_pml_check_selected(const char *my_pml,
|
|
|
|
struct ompi_proc_t **procs,
|
|
|
|
size_t nprocs);
|
|
|
|
|
2007-10-09 19:28:56 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_finalize(void);
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_close(void);
|
2004-01-12 00:31:52 +03:00
|
|
|
|
2007-03-17 02:11:45 +03:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_ft_event(int state);
|
2004-01-12 00:31:52 +03:00
|
|
|
|
|
|
|
/*
|
2004-01-30 06:54:52 +03:00
|
|
|
* Globals
|
2004-01-12 00:31:52 +03:00
|
|
|
*/
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC extern int mca_pml_base_output;
|
2005-07-03 20:22:16 +04:00
|
|
|
OMPI_DECLSPEC extern opal_list_t mca_pml_base_components_available;
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC extern mca_pml_base_component_t mca_pml_base_selected_component;
|
|
|
|
OMPI_DECLSPEC extern mca_pml_base_module_t mca_pml;
|
2007-12-21 09:02:00 +03:00
|
|
|
OMPI_DECLSPEC extern opal_pointer_array_t mca_pml_base_pml;
|
|
|
|
|
|
|
|
END_C_DECLS
|
2004-01-12 00:31:52 +03:00
|
|
|
|
|
|
|
#endif /* MCA_PML_BASE_H */
|