root/orte/mca/routed/debruijn/routed_debruijn_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. orte_routed_debruijn_component_query

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2007-2015 Los Alamos National Security, LLC.
   4  *                         All rights reserved.
   5  * Copyright (c) 2004-2008 The Trustees of Indiana University.
   6  *                         All rights reserved.
   7  * Copyright (c) 2016-2017 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_debruijn.h"
  22 
  23 static int orte_routed_debruijn_component_query(mca_base_module_t **module, int *priority);
  24 
  25 /**
  26  * component definition
  27  */
  28 orte_routed_component_t mca_routed_debruijn_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 = "debruijn",
  36         MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
  37                               ORTE_RELEASE_VERSION),
  38         .mca_query_component = orte_routed_debruijn_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_debruijn_component_query(mca_base_module_t **module, int *priority)
  47 {
  48     /* Debruijn shall be our default, especially for large systems. For smaller
  49      * systems, we will allow other options that have even fewer hops to
  50      * support wireup
  51      */
  52     *priority = 10;
  53     *module = (mca_base_module_t *) &orte_routed_debruijn_module;
  54     return ORTE_SUCCESS;
  55 }

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