source: XIOS/dev/branch_openmp/extern/src_ep_dev/ep_lib_collective.hpp @ 1289

Last change on this file since 1289 was 1289, checked in by yushan, 7 years ago

EP update part 2

File size: 2.7 KB
Line 
1#ifndef EP_LIB_COLLECTIVE_HPP_INCLUDED
2#define EP_LIB_COLLECTIVE_HPP_INCLUDED
3
4namespace ep_lib
5{
6  #ifdef _intelmpi
7  typedef int MPI_Datatype;
8  typedef int MPI_Op;
9  #elif _openmpi
10  typedef void* MPI_Datatype;
11  typedef void* MPI_Op;
12  #endif
13
14  int MPI_Barrier(MPI_Comm comm);
15
16  int MPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm);
17
18  int MPI_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm);
19  int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
20
21  int MPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[], MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
22
23  int MPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
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  int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm);
30
31  int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[],
32                  MPI_Datatype recvtype, int root, MPI_Comm comm);
33  int MPI_Gatherv_special(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[],
34                          MPI_Datatype recvtype, int root, MPI_Comm comm);
35  int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[],
36                     MPI_Datatype recvtype, MPI_Comm comm);
37
38  int MPI_Allgatherv_special(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[],
39                             MPI_Datatype recvtype, MPI_Comm comm);
40
41
42  int MPI_Scatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm);
43  int MPI_Scatterv(const void *sendbuf, const int sendcounts[], const int displs[], MPI_Datatype sendtype, void *recvbuf, int recvcount,
44                   MPI_Datatype recvtype, int root, MPI_Comm comm);
45
46  int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm);
47
48}
49
50#endif // EP_LIB_COLLECTIVE_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.