2015-10-19 19:39:35 +03:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
2005-07-28 03:18:16 +04:00
|
|
|
/*
|
2008-05-06 22:08:45 +04:00
|
|
|
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2011-06-24 00:38:02 +04:00
|
|
|
* Copyright (c) 2004-2011 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,
|
2005-07-28 03:18:16 +04:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2011-11-02 21:42:06 +04:00
|
|
|
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
2015-10-19 19:39:35 +03:00
|
|
|
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights reserved.
|
2005-07-28 03:18:16 +04:00
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2005-07-28 03:18:16 +04:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2005-07-28 03:18:16 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/constants.h"
|
2005-07-28 03:18:16 +04:00
|
|
|
|
2015-03-06 06:50:44 +03:00
|
|
|
#include "orte/mca/mca.h"
|
2005-09-01 16:16:36 +04:00
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
#include "opal/mca/base/mca_base_component_repository.h"
|
2013-02-28 05:35:55 +04:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/mca/ess/base/base.h"
|
|
|
|
|
2015-06-24 06:59:57 +03:00
|
|
|
int
|
2008-02-28 04:57:57 +03:00
|
|
|
orte_ess_base_select(void)
|
2005-07-28 03:18:16 +04:00
|
|
|
{
|
2008-05-06 22:08:45 +04:00
|
|
|
orte_ess_base_component_t *best_component = NULL;
|
|
|
|
orte_ess_base_module_t *best_module = NULL;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Select the best component
|
|
|
|
*/
|
2013-03-28 01:14:43 +04:00
|
|
|
if( OPAL_SUCCESS != mca_base_select("ess", orte_ess_base_framework.framework_output,
|
|
|
|
&orte_ess_base_framework.framework_components,
|
2008-06-06 18:38:41 +04:00
|
|
|
(mca_base_module_t **) &best_module,
|
2015-10-19 19:39:35 +03:00
|
|
|
(mca_base_component_t **) &best_component, NULL) ) {
|
2011-11-02 21:42:06 +04:00
|
|
|
/* error message emitted by fn above */
|
|
|
|
return ORTE_ERR_SILENT;
|
2005-07-28 03:18:16 +04:00
|
|
|
}
|
|
|
|
|
2008-05-06 22:08:45 +04:00
|
|
|
/* Save the winner */
|
|
|
|
/* No global component structure */
|
|
|
|
orte_ess = *best_module;
|
2005-07-28 03:18:16 +04:00
|
|
|
|
2008-06-06 18:38:41 +04:00
|
|
|
return ORTE_SUCCESS;
|
2005-07-28 03:18:16 +04:00
|
|
|
}
|