1 | #ifndef EP_LIB_COLLECTIVE_HPP_INCLUDED |
---|
2 | #define EP_LIB_COLLECTIVE_HPP_INCLUDED |
---|
3 | |
---|
4 | namespace ep_lib |
---|
5 | { |
---|
6 | |
---|
7 | typedef void* MPI_Datatype; |
---|
8 | typedef void* MPI_Op; |
---|
9 | |
---|
10 | |
---|
11 | int MPI_Barrier(MPI_Comm comm); |
---|
12 | |
---|
13 | |
---|
14 | int MPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm); |
---|
15 | |
---|
16 | int MPI_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm); |
---|
17 | |
---|
18 | int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm); |
---|
19 | |
---|
20 | int MPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[], MPI_Datatype datatype, MPI_Op op, MPI_Comm comm); |
---|
21 | |
---|
22 | int MPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm); |
---|
23 | |
---|
24 | int MPI_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm); |
---|
25 | |
---|
26 | int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm); |
---|
27 | |
---|
28 | int MPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm); |
---|
29 | |
---|
30 | int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm); |
---|
31 | |
---|
32 | int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], |
---|
33 | MPI_Datatype recvtype, int root, MPI_Comm comm); |
---|
34 | int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], |
---|
35 | MPI_Datatype recvtype, MPI_Comm comm); |
---|
36 | |
---|
37 | |
---|
38 | int MPI_Scatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm); |
---|
39 | |
---|
40 | int MPI_Scatterv(const void *sendbuf, const int sendcounts[], const int displs[], MPI_Datatype sendtype, void *recvbuf, int recvcount, |
---|
41 | MPI_Datatype recvtype, int root, MPI_Comm comm); |
---|
42 | |
---|
43 | int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm); |
---|
44 | |
---|
45 | int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm); |
---|
46 | |
---|
47 | int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm *newintercomm); |
---|
48 | |
---|
49 | int MPI_Intercomm_create_kernel(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm *newintercomm); |
---|
50 | |
---|
51 | |
---|
52 | int MPI_Intercomm_create_from_world(MPI_Comm local_comm, int local_leader, void* peer_comm_ptr, int mpi_remote_leader, int tag, MPI_Comm *newintercomm); |
---|
53 | |
---|
54 | int MPI_Intercomm_create_unique_leader(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm *newintercomm); |
---|
55 | |
---|
56 | int MPI_Comm_create_endpoints(void* base_comm_ptr, int num_ep, MPI_Info info, MPI_Comm *& out_comm_hdls); // from EP to create endpoints |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | int MPI_Intercomm_merge(MPI_Comm intercomm, bool high, MPI_Comm *newintracomm); |
---|
61 | |
---|
62 | int MPI_Intercomm_merge_unique_leader(MPI_Comm intercomm, bool high, MPI_Comm *newintracomm); |
---|
63 | |
---|
64 | } |
---|
65 | |
---|
66 | #endif // EP_LIB_COLLECTIVE_HPP_INCLUDED |
---|