This source file includes following definitions.
- example_module_constructor
- example_module_destructor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #include "ompi_config.h"
22
23 #include <stdio.h>
24
25 #include "mpi.h"
26 #include "ompi/communicator/communicator.h"
27 #include "ompi/mca/topo/topo.h"
28 #include "ompi/mca/topo/base/base.h"
29 #include "ompi/mca/topo/example/topo_example.h"
30
31
32
33
34
35 static void example_module_constructor(mca_topo_example_module_t *u);
36 static void example_module_destructor(mca_topo_example_module_t *u);
37
38 OBJ_CLASS_INSTANCE(mca_topo_example_module_t, mca_topo_base_module_t,
39 example_module_constructor, example_module_destructor);
40
41
42 static void example_module_constructor(mca_topo_example_module_t *u)
43 {
44 mca_topo_base_module_t *m = &(u->super);
45
46 memset(&m->topo, 0, sizeof(m->topo));
47
48
49
50 u->example_module_specific_data = 17;
51 }
52
53
54 static void example_module_destructor(mca_topo_example_module_t *u)
55 {
56
57 }
58