root/opal/mca/shmem/base/shmem_base_open.c

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

DEFINITIONS

This source file includes following definitions.
  1. opal_shmem_base_register

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2005 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2008-2011 Cisco Systems, Inc.  All rights reserved.
  13  * Copyright (c) 2010-2011 Los Alamos National Security, LLC.
  14  *                         All rights reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 
  22 #include "opal_config.h"
  23 
  24 #include "opal/constants.h"
  25 #include "opal/util/output.h"
  26 #include "opal/mca/mca.h"
  27 #include "opal/mca/base/base.h"
  28 #include "opal/mca/base/mca_base_var.h"
  29 #include "opal/mca/shmem/shmem.h"
  30 #include "opal/mca/shmem/base/base.h"
  31 
  32 /*
  33  * The following file was created by configure.  It contains extern
  34  * statements and the definition of an array of pointers to each
  35  * component's public mca_base_component_t struct.
  36  */
  37 #include "opal/mca/shmem/base/static-components.h"
  38 
  39 /**
  40  * globals
  41  */
  42 char *opal_shmem_base_RUNTIME_QUERY_hint = NULL;
  43 
  44 /* ////////////////////////////////////////////////////////////////////////// */
  45 /**
  46  * Register some shmem-wide MCA params
  47  */
  48 static int
  49 opal_shmem_base_register (mca_base_register_flag_t flags)
  50 {
  51     int ret;
  52 
  53     /* register an INTERNAL parameter used to provide a component selection
  54      * hint to the shmem framework.
  55      */
  56     opal_shmem_base_RUNTIME_QUERY_hint = NULL;
  57     ret = mca_base_framework_var_register (&opal_shmem_base_framework, "RUNTIME_QUERY_hint",
  58                                            "Internal OMPI parameter used to provide a "
  59                                            "component selection hint to the shmem "
  60                                            "framework.  The value of this parameter "
  61                                            "is the name of the component that is "
  62                                            "available, selectable, and meets our "
  63                                            "run-time behavior requirements.",
  64                                            MCA_BASE_VAR_TYPE_STRING, NULL, 0,
  65                                            MCA_BASE_VAR_FLAG_INTERNAL,
  66                                            OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_ALL,
  67                                            &opal_shmem_base_RUNTIME_QUERY_hint);
  68 
  69     return (0 > ret) ? ret : OPAL_SUCCESS;
  70 }
  71 
  72 /* Use the default open function */
  73 MCA_BASE_FRAMEWORK_DECLARE(opal, shmem, "shared memory", opal_shmem_base_register, NULL,
  74                            opal_shmem_base_close, mca_shmem_base_static_components, 0);

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