1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef COMM_COLL_OP_TYPES_H
15 #define COMM_COLL_OP_TYPES_H
16
17 #include "ompi_config.h"
18 #include "ompi/communicator/communicator.h"
19 #include "ompi/datatype/ompi_datatype.h"
20 #include "ompi/proc/proc.h"
21
22 BEGIN_C_DECLS
23
24 #define OMPI_COMMON_TAG_ALLREDUCE 99
25 #define OMPI_COMMON_TAG_BCAST 98
26
27
28
29
30 OMPI_DECLSPEC int ompi_comm_allgather_pml(void *src_buf, void *dest_buf, int count,
31 ompi_datatype_t *dtype, int my_rank_in_group, int n_peers,
32 int *ranks_in_comm,ompi_communicator_t *comm);
33 OMPI_DECLSPEC int ompi_comm_allreduce_pml(void *sbuf, void *rbuf, int count,
34 ompi_datatype_t *dtype, int my_rank_in_group,
35 struct ompi_op_t *op, int n_peers,int *ranks_in_comm,
36 ompi_communicator_t *comm);
37 OMPI_DECLSPEC int ompi_comm_bcast_pml(void *buffer, int root, int count,
38 ompi_datatype_t *dtype, int my_rank_in_group,
39 int n_peers, int *ranks_in_comm,ompi_communicator_t
40 *comm);
41
42
43 #define OP_SUM 1
44 #define OP_MAX 2
45 #define OP_MIN 3
46
47 #define TYPE_INT4 1
48
49
50 END_C_DECLS
51
52 #endif