This source file includes following definitions.
- mca_coll_demo_gather_intra
- mca_coll_demo_gather_inter
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 "opal/util/output.h"
21
22 #include "mpi.h"
23 #include "ompi/constants.h"
24 #include "ompi/mca/coll/coll.h"
25 #include "ompi/mca/coll/base/base.h"
26 #include "coll_demo.h"
27
28
29
30
31
32
33
34
35 int mca_coll_demo_gather_intra(void *sbuf, int scount,
36 struct ompi_datatype_t *sdtype,
37 void *rbuf, int rcount,
38 struct ompi_datatype_t *rdtype,
39 int root, struct ompi_communicator_t *comm,
40 mca_coll_base_module_t *module)
41 {
42 mca_coll_demo_module_t *demo_module = (mca_coll_demo_module_t*) module;
43 opal_output_verbose(10, ompi_coll_base_framework.framework_output, "In demo gather_intra");
44 return demo_module->underlying.coll_gather(sbuf, scount, sdtype,
45 rbuf, rcount, rdtype,
46 root, comm,
47 demo_module->underlying.coll_gather_module);
48 }
49
50
51
52
53
54
55
56
57
58 int mca_coll_demo_gather_inter(void *sbuf, int scount,
59 struct ompi_datatype_t *sdtype,
60 void *rbuf, int rcount,
61 struct ompi_datatype_t *rdtype,
62 int root, struct ompi_communicator_t *comm,
63 mca_coll_base_module_t *module)
64 {
65 mca_coll_demo_module_t *demo_module = (mca_coll_demo_module_t*) module;
66 opal_output_verbose(10, ompi_coll_base_framework.framework_output, "In demo gather_inter");
67 return demo_module->underlying.coll_gather(sbuf, scount, sdtype,
68 rbuf, rcount, rdtype,
69 root, comm,
70 demo_module->underlying.coll_gather_module);
71 }