root/orte/mca/ess/base/ess_base_select.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. orte_ess_base_select

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2011 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2011 Cisco Systems, Inc.  All rights reserved.
  14  * Copyright (c) 2013-2015 Los Alamos National Security, LLC.  All rights reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 
  22 #include "orte_config.h"
  23 #include "orte/constants.h"
  24 
  25 #include "orte/mca/mca.h"
  26 #include "opal/mca/base/base.h"
  27 #include "opal/mca/base/mca_base_component_repository.h"
  28 
  29 #include "orte/mca/ess/base/base.h"
  30 
  31 int
  32 orte_ess_base_select(void)
  33 {
  34     orte_ess_base_component_t *best_component = NULL;
  35     orte_ess_base_module_t *best_module = NULL;
  36 
  37     /*
  38      * Select the best component
  39      */
  40     if( OPAL_SUCCESS != mca_base_select("ess", orte_ess_base_framework.framework_output,
  41                                         &orte_ess_base_framework.framework_components,
  42                                         (mca_base_module_t **) &best_module,
  43                                         (mca_base_component_t **) &best_component, NULL) ) {
  44         /* error message emitted by fn above */
  45         return ORTE_ERR_SILENT;
  46     }
  47 
  48     /* Save the winner */
  49     /* No global component structure */
  50     orte_ess = *best_module;
  51 
  52     return ORTE_SUCCESS;
  53 }

/* [<][>][^][v][top][bottom][index][help] */