root/orte/mca/routed/binomial/routed_binomial_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. orte_routed_binomial_component_query

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
   4  *                         reserved.
   5  * Copyright (c) 2004-2008 The Trustees of Indiana University.
   6  *                         All rights reserved.
   7  * Copyright (c) 2016      Intel, Inc.  All rights reserved.
   8  * $COPYRIGHT$
   9  *
  10  * Additional copyrights may follow
  11  *
  12  * $HEADER$
  13  */
  14 
  15 #include "orte_config.h"
  16 #include "orte/constants.h"
  17 
  18 #include "opal/mca/base/base.h"
  19 
  20 #include "orte/mca/routed/base/base.h"
  21 #include "routed_binomial.h"
  22 
  23 static int orte_routed_binomial_component_query(mca_base_module_t **module, int *priority);
  24 
  25 /**
  26  * component definition
  27  */
  28 orte_routed_component_t mca_routed_binomial_component = {
  29     /* First, the mca_base_component_t struct containing meta
  30        information about the component itself */
  31 
  32     .base_version = {
  33         ORTE_ROUTED_BASE_VERSION_3_0_0,
  34 
  35         .mca_component_name = "binomial",
  36         MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
  37                               ORTE_RELEASE_VERSION),
  38         .mca_query_component = orte_routed_binomial_component_query
  39     },
  40     .base_data = {
  41         /* This component can be checkpointed */
  42         MCA_BASE_METADATA_PARAM_CHECKPOINT
  43     },
  44 };
  45 
  46 static int orte_routed_binomial_component_query(mca_base_module_t **module, int *priority)
  47 {
  48     /* make this selected ONLY if the user directs as this module scales
  49      * poorly compared to our other options
  50      */
  51     *priority = 30;
  52     *module = (mca_base_module_t *) &orte_routed_binomial_module;
  53     return ORTE_SUCCESS;
  54 }

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