1
1
openmpi/ompi/mca/vprotocol/base/vprotocol_base.c
Nathan Hjelm 9d4a26f47d Update OMPI frameworks to use the MCA framework system.
Notes:
  - This commit also eliminates the need for an available components list in use
    in several frameworks. None of the code in question was making use of the
    priority field of the priority component list item so these extra lists were
    removed.
  - Cleaned up selection code in several frameworks to sort lists using opal_list_sort.
  - Cleans up the ompi/orte-info functions. Expose the functions that construct the
    list of params so they can be used elsewhere.

patches for mtl/portals4 from brian

missed a few output variables in openib

This commit was SVN r28241.
2013-03-27 21:17:31 +00:00

61 строка
1.7 KiB
C

/*
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
* All rights reserved.
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "base.h"
#include "opal/mca/mca.h"
#include "opal/mca/base/base.h"
#include "ompi/mca/vprotocol/base/static-components.h"
char *mca_vprotocol_base_include_list;
mca_pml_v_t mca_pml_v = {-1, 0, 0};
/* Load any vprotocol MCA component and call open function of all those
* components.
*
* Also fill the mca_vprotocol_base_include_list with components that exists
*/
static int mca_vprotocol_base_open(mca_base_open_flag_t flags)
{
if (NULL == mca_vprotocol_base_include_list) {
return OMPI_SUCCESS;
}
return mca_base_framework_components_open(&ompi_vprotocol_base_framework, 0);
}
void mca_vprotocol_base_set_include_list(char *vprotocol_include_list)
{
mca_vprotocol_base_include_list = NULL;
if (NULL != vprotocol_include_list && vprotocol_include_list[0] != '\0') {
mca_vprotocol_base_include_list = strdup (vprotocol_include_list);
}
}
/* Close and unload any vprotocol MCA component loaded.
*/
static int mca_vprotocol_base_close(void)
{
if (NULL != mca_vprotocol_base_include_list) {
free(mca_vprotocol_base_include_list);
}
return mca_base_framework_components_close(&ompi_vprotocol_base_framework, NULL);;
}
MCA_BASE_FRAMEWORK_DECLARE(ompi, vprotocol, "OMPI Vprotocol", NULL,
mca_vprotocol_base_open, mca_vprotocol_base_close,
mca_vprotocol_base_static_components, 0);