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