2004-01-29 05:43:58 +03:00
|
|
|
/*
|
2004-11-22 04:38:40 +03: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.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-01-29 05:43:58 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-29 05:43:58 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mca/mca.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/base.h"
|
|
|
|
#include "mca/pml/pml.h"
|
|
|
|
#include "mca/pml/base/base.h"
|
2004-01-29 05:43:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following file was created by configure. It contains extern
|
|
|
|
* statements and the definition of an array of pointers to each
|
2004-08-02 04:24:22 +04:00
|
|
|
* component's public mca_base_component_t struct.
|
2004-01-29 05:43:58 +03:00
|
|
|
*/
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
#include "mca/pml/base/static-components.h"
|
2004-01-29 05:43:58 +03:00
|
|
|
|
2005-01-13 18:30:49 +03:00
|
|
|
int mca_pml_base_progress(void)
|
2004-08-28 05:15:19 +04:00
|
|
|
{
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2004-01-29 05:43:58 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables
|
|
|
|
*/
|
|
|
|
int mca_pml_base_output = -1;
|
2004-08-28 05:15:19 +04:00
|
|
|
mca_pml_base_module_t mca_pml = {
|
2004-10-12 19:50:01 +04:00
|
|
|
NULL, /* pml_add_procs */
|
|
|
|
NULL, /* pml_del_procs */
|
|
|
|
NULL, /* pml_add_ptls */
|
|
|
|
NULL, /* pml_control */
|
|
|
|
mca_pml_base_progress, /* pml_progress */
|
|
|
|
NULL, /* pml_add_comm */
|
|
|
|
NULL, /* pml_del_comm */
|
|
|
|
NULL, /* pml_irecv_init */
|
|
|
|
NULL, /* pml_irecv */
|
|
|
|
NULL, /* pml_recv */
|
|
|
|
NULL, /* pml_isend_init */
|
|
|
|
NULL, /* pml_isend */
|
|
|
|
NULL, /* pml_send */
|
|
|
|
NULL, /* pml_iprobe */
|
|
|
|
NULL, /* pml_probe */
|
|
|
|
NULL /* pml_start */
|
2004-08-28 05:15:19 +04:00
|
|
|
};
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
ompi_list_t mca_pml_base_components_available;
|
|
|
|
mca_pml_base_component_t mca_pml_base_selected_component;
|
2004-01-29 05:43:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2004-08-02 04:24:22 +04:00
|
|
|
* Function for finding and opening either all MCA components, or the one
|
2004-01-29 05:43:58 +03:00
|
|
|
* that was specifically requested via a MCA parameter.
|
|
|
|
*/
|
|
|
|
int mca_pml_base_open(void)
|
|
|
|
{
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Open up all available components */
|
2004-01-29 05:43:58 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (OMPI_SUCCESS !=
|
2004-08-02 04:24:22 +04:00
|
|
|
mca_base_components_open("pml", 0, mca_pml_base_static_components,
|
|
|
|
&mca_pml_base_components_available)) {
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_ERROR;
|
2004-01-29 05:43:58 +03:00
|
|
|
}
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
/* Set a sentinel in case we don't select any components (e.g.,
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info) */
|
2004-01-31 01:56:36 +03:00
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
mca_pml_base_selected_component.pmlm_finalize = NULL;
|
2004-01-31 01:56:36 +03:00
|
|
|
|
2004-01-29 05:43:58 +03:00
|
|
|
/* All done */
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_SUCCESS;
|
2004-01-29 05:43:58 +03:00
|
|
|
}
|