root/ompi/mca/topo/treematch/topo_treematch_module.c

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

DEFINITIONS

This source file includes following definitions.
  1. treematch_module_constructor
  2. treematch_module_destructor

   1 /*
   2  * Copyright (c) 2011-2015 The University of Tennessee and The University
   3  *                         of Tennessee Research Foundation.  All rights
   4  *                         reserved.
   5  * Copyright (c) 2011-2015 INRIA.  All rights reserved.
   6  * Copyright (c) 2011-2015 Université Bordeaux 1
   7  * $COPYRIGHT$
   8  *
   9  * Additional copyrights may follow
  10  *
  11  * $HEADER$
  12  */
  13 
  14 #include "ompi_config.h"
  15 
  16 #include <stdio.h>
  17 
  18 #include "mpi.h"
  19 #include "ompi/communicator/communicator.h"
  20 #include "ompi/mca/topo/topo.h"
  21 #include "ompi/mca/topo/base/base.h"
  22 #include "ompi/mca/topo/treematch/topo_treematch.h"
  23 
  24 /*
  25  * Local functions
  26  */
  27 static void treematch_module_constructor(mca_topo_treematch_module_t *u);
  28 static void treematch_module_destructor(mca_topo_treematch_module_t *u);
  29 
  30 OBJ_CLASS_INSTANCE(mca_topo_treematch_module_t, mca_topo_base_module_t,
  31                    treematch_module_constructor, treematch_module_destructor);
  32 
  33 
  34 static void treematch_module_constructor(mca_topo_treematch_module_t *u)
  35 {
  36     mca_topo_base_module_t *m = &(u->super);
  37 
  38     memset(&m->topo, 0, sizeof(m->topo));
  39 }
  40 
  41 
  42 static void treematch_module_destructor(mca_topo_treematch_module_t *u)
  43 {
  44     /* Do whatever is necessary to clean up / destroy the module */
  45 }

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