source: XIOS/dev/dev_trunk_omp/extern/src_ep_dev/ep_lib.hpp @ 1646

Last change on this file since 1646 was 1646, checked in by yushan, 5 years ago

branch merged with trunk @1645. arch file (ep&mpi) added for ADA

File size: 3.1 KB
Line 
1#ifndef EP_LIB_HPP_INCLUDED
2#define EP_LIB_HPP_INCLUDED
3#ifdef _usingEP
4
5#include "ep_type.hpp"
6#include "ep_lib_intercomm.hpp"
7#include "ep_lib_endpoint.hpp"
8#include "ep_lib_local.hpp"
9#include "ep_lib_collective.hpp"
10#include "ep_lib_fortran.hpp"
11#include "ep_lib_win.hpp"
12#include "ep_lib_mpi.hpp"
13
14
15namespace ep_lib
16{
17  typedef void* MPI_Datatype;
18  typedef void* MPI_Op;
19
20  int MPI_Init_thread(int* argc, char*** argv, int required, int*provided);
21
22  int MPI_Init(int *argc, char ***argv);
23
24  int MPI_Initialized(int *flag);
25
26  int MPI_Comm_rank(MPI_Comm comm, int* rank);
27
28  int MPI_Comm_size(MPI_Comm comm, int* rank);
29
30  int MPI_Comm_free(MPI_Comm* comm);
31
32  int MPI_Finalize();
33 
34  double MPI_Wtime();
35
36  int MPI_Abort(MPI_Comm comm, int errorcode);
37
38  int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
39 
40  int MPI_Comm_remote_size(MPI_Comm comm, int *size);
41
42
43  int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm);
44  int MPI_Ssend(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm);
45  int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request);
46  int MPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request);
47
48
49  int MPI_Recv  (void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Status *status);
50  int MPI_Irecv (void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request *request);
51  int MPI_Mrecv (void *buf, int count, MPI_Datatype datatype, MPI_Message *message, MPI_Status *status);
52  int MPI_Imrecv(void *buf, int count, MPI_Datatype datatype, MPI_Message *message, MPI_Request *request);
53
54
55  int MPI_Test(MPI_Request *request, int *flag, MPI_Status *status);
56  int MPI_Testall(int count, MPI_Request *array_of_requests, int *flag, MPI_Status *array_of_statuses);
57
58  int MPI_Wait(MPI_Request *request, MPI_Status *status);
59  int MPI_Waitall(int count, MPI_Request *array_of_requests, MPI_Status *array_of_statuses);
60
61
62  int MPI_Iprobe(int source, int tag, MPI_Comm comm, int *flag, MPI_Status *status);
63  int MPI_Improbe(int source, int tag, MPI_Comm comm, int *flag, MPI_Message *message, MPI_Status *status);
64 
65  int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr);
66  int MPI_Alloc_mem(unsigned long size, MPI_Info info, void *baseptr);
67
68  int MPI_Comm_test_inter(MPI_Comm comm, int *flag);
69
70
71  void check_sum_send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, int type);
72  void check_sum_recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, int type);
73
74  bool valid_type(MPI_Datatype type);
75  bool valid_op(MPI_Op op);
76
77  int tag_combine(int real_tag, int src, int dest);
78  int get_ep_rank(MPI_Comm comm, int ep_rank_loc, int mpi_rank);
79
80  int Message_Check(MPI_Comm comm);
81
82  int Request_Check();
83 
84  void show_EP_PendingRequests(std::list< ep_lib::MPI_Request* > * EP_PendingRequest);
85
86  int test_sendrecv(MPI_Comm comm);
87
88
89}
90#endif
91#endif // EP_LIB_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.