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