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.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2004-11-28 23:09:25 +03:00
|
|
|
* 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.
|
2013-03-28 01:17:31 +04:00
|
|
|
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
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
|
|
|
|
2015-03-06 06:50:44 +03:00
|
|
|
#include "ompi/mca/mca.h"
|
2013-03-28 01:17:31 +04:00
|
|
|
#include "opal/mca/base/mca_base_framework.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
|
|
|
|
2013-03-28 01:17:31 +04:00
|
|
|
#include "ompi/mca/pml/pml.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
|
2015-06-24 06:59:57 +03:00
|
|
|
* If there exists more than one then it is undefined
|
2007-03-17 02:11:45 +03:00
|
|
|
* which one is picked.
|
|
|
|
*/
|
|
|
|
#define PML_SELECT_WRAPPER_PRIORITY -128
|
|
|
|
|
2013-03-28 01:17:31 +04:00
|
|
|
/*
|
|
|
|
* MCA framework
|
|
|
|
*/
|
|
|
|
OMPI_DECLSPEC extern mca_base_framework_t ompi_pml_base_framework;
|
|
|
|
/*
|
|
|
|
* Select an available component.
|
|
|
|
*/
|
2005-03-27 17:05:23 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_select(bool enable_progress_threads,
|
|
|
|
bool enable_mpi_threads);
|
2013-03-28 01:17:31 +04:00
|
|
|
OMPI_DECLSPEC int mca_pml_base_progress(void);
|
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);
|
|
|
|
|
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 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 */
|