This source file includes following definitions.
- init_query
- comm_query
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 #include "ompi_config.h"
  20 #include "ompi/mca/topo/basic/topo_basic.h"
  21 
  22 
  23 
  24 
  25 const char *mca_topo_basic_component_version_string =
  26     "Open MPI basic topology MCA component version" OMPI_VERSION;
  27 
  28 
  29 
  30 
  31 static int init_query(bool enable_progress_threads, bool enable_mpi_threads);
  32 static struct mca_topo_base_module_t *
  33 comm_query(const ompi_communicator_t *comm, int *priority, uint32_t type);
  34 
  35 
  36 
  37 
  38 mca_topo_basic_component_t mca_topo_basic_component =
  39 {
  40     .topoc_version = {
  41         MCA_TOPO_BASE_VERSION_2_2_0,
  42         .mca_component_name = "basic",
  43         .mca_component_major_version = OMPI_MAJOR_VERSION,
  44         .mca_component_minor_version = OMPI_MINOR_VERSION,
  45         .mca_component_release_version = OMPI_RELEASE_VERSION,
  46         
  47     },
  48 
  49     .topoc_data = {
  50         
  51         MCA_BASE_METADATA_PARAM_CHECKPOINT
  52     },
  53 
  54     .topoc_init_query = init_query,
  55     .topoc_comm_query = comm_query,
  56 };
  57 
  58 
  59 static int init_query(bool enable_progress_threads, bool enable_mpi_threads)
  60 {
  61     
  62     return OMPI_SUCCESS;
  63 }
  64 
  65 
  66 static struct mca_topo_base_module_t *
  67 comm_query(const ompi_communicator_t *comm, int *priority, uint32_t type)
  68 {
  69     
  70 
  71 
  72     mca_topo_base_module_t *basic = calloc(1, sizeof(mca_topo_base_module_t));
  73 
  74     if (NULL == basic) {
  75         return NULL;
  76     }
  77     OBJ_CONSTRUCT(basic, mca_topo_base_module_t);
  78 
  79     
  80     *priority = 0;
  81     basic->type = type;
  82     return basic;
  83 }
  84 
  85