- Timestamp:
- 05/31/17 10:51:06 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/extern/src_ep_dev/ep_test.cpp
r1134 r1149 15 15 namespace ep_lib { 16 16 17 18 19 17 int MPI_Test(MPI_Request *request, int *flag, MPI_Status *status) 18 { 19 Debug("MPI_Test with EP"); 20 20 21 21 *flag = false; … … 56 56 if(request->type == 3) // imrecv 57 57 { 58 ::MPI_Request mpi_request = static_cast< ::MPI_Request >(request->mpi_request);58 ::MPI_Request *mpi_request = static_cast< ::MPI_Request* >(&(request->mpi_request)); 59 59 ::MPI_Status mpi_status; 60 ::MPI_Test(&mpi_request, flag, &mpi_status); 60 61 ::MPI_Errhandler_set(MPI_COMM_WORLD_STD, MPI_ERRORS_RETURN); 62 int error_code = ::MPI_Test(mpi_request, flag, &mpi_status); 63 if (error_code != MPI_SUCCESS) { 64 65 char error_string[BUFSIZ]; 66 int length_of_error_string, error_class; 67 68 ::MPI_Error_class(error_code, &error_class); 69 ::MPI_Error_string(error_class, error_string, &length_of_error_string); 70 printf("%s\n", error_string); 71 } 72 61 73 if(*flag) 62 74 { … … 79 91 } 80 92 81 93 } 82 94 83 95 84 85 86 96 int MPI_Testall(int count, MPI_Request *array_of_requests, int *flag, MPI_Status *array_of_statuses) 97 { 98 Debug("MPI_Testall with EP"); 87 99 *flag = true; 88 100 int i=0; … … 92 104 i++; 93 105 } 94 106 } 95 107 96 108
Note: See TracChangeset
for help on using the changeset viewer.