root/orte/mca/schizo/ompi/schizo_ompi_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. component_query

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2016      Intel, Inc.  All rights reserved.
   4  * Copyright (c) 2015      Los Alamos National Security, LLC. All rights
   5  *                         reserved.
   6  * $COPYRIGHT$
   7  *
   8  * Additional copyrights may follow
   9  *
  10  * $HEADER$
  11  */
  12 
  13 #include "orte_config.h"
  14 #include "orte/types.h"
  15 #include "opal/types.h"
  16 
  17 #include "opal/util/show_help.h"
  18 
  19 #include "orte/runtime/orte_globals.h"
  20 
  21 #include "orte/mca/schizo/schizo.h"
  22 #include "schizo_ompi.h"
  23 
  24 static int component_query(mca_base_module_t **module, int *priority);
  25 
  26 /*
  27  * Struct of function pointers and all that to let us be initialized
  28  */
  29 orte_schizo_base_component_t mca_schizo_ompi_component = {
  30     .base_version = {
  31         MCA_SCHIZO_BASE_VERSION_1_0_0,
  32         .mca_component_name = "ompi",
  33         MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
  34                               ORTE_RELEASE_VERSION),
  35         .mca_query_component = component_query,
  36     },
  37     .base_data = {
  38         /* The component is checkpoint ready */
  39         MCA_BASE_METADATA_PARAM_CHECKPOINT
  40     },
  41 };
  42 
  43 static int component_query(mca_base_module_t **module, int *priority)
  44 {
  45     /* if we are an app, ignore us */
  46     if (ORTE_PROC_IS_APP) {
  47         *module = NULL;
  48         *priority = 0;
  49         return ORTE_ERROR;
  50     }
  51     *module = (mca_base_module_t*)&orte_schizo_ompi_module;
  52     *priority = 10;
  53     return ORTE_SUCCESS;
  54 }
  55 

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