Last change
on this file since 2146 was
1538,
checked in by yushan, 6 years ago
|
tests in XIOS OK (client, complete, remap, toy)
|
File size:
791 bytes
|
Rev | Line | |
---|
[1502] | 1 | #ifndef EP_REQUEST_HPP_INCLUDED |
---|
| 2 | #define EP_REQUEST_HPP_INCLUDED |
---|
| 3 | |
---|
| 4 | #include "ep_comm.hpp" |
---|
| 5 | |
---|
| 6 | namespace ep_lib |
---|
| 7 | { |
---|
| 8 | |
---|
| 9 | class ep_request |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | |
---|
| 13 | void* mpi_request; |
---|
| 14 | |
---|
| 15 | int type; //! type of the non-blocking communication. |
---|
[1503] | 16 | // 1: Isend or Issend |
---|
| 17 | // 2: Irecv |
---|
| 18 | // 3: Imrecv |
---|
| 19 | |
---|
[1538] | 20 | int state; // 0: new |
---|
[1502] | 21 | // 1: imrecvd |
---|
| 22 | // 2: tested or waited |
---|
[1527] | 23 | bool probed; |
---|
[1502] | 24 | |
---|
| 25 | void* buf; |
---|
| 26 | |
---|
| 27 | int ep_src; |
---|
| 28 | int ep_tag; |
---|
| 29 | void* ep_datatype; |
---|
[1503] | 30 | |
---|
| 31 | |
---|
[1502] | 32 | |
---|
| 33 | ep_comm *comm; //! EP communicator related to the communication |
---|
| 34 | |
---|
| 35 | ep_request() {} |
---|
| 36 | ep_request(void* request); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | typedef ep_request* MPI_Request; |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | #endif // EP_REQUEST_HPP_INCLUDED |
---|
| 47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.