[1603] | 1 | #include "ep_lib.hpp" |
---|
| 2 | |
---|
| 3 | #include <mpi.h> |
---|
| 4 | |
---|
| 5 | ::MPI_Comm MPI_COMM_WORLD_STD = MPI_COMM_WORLD; |
---|
| 6 | #undef MPI_COMM_WORLD |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | ::MPI_Comm MPI_COMM_NULL_STD = MPI_COMM_NULL; |
---|
| 10 | #undef MPI_COMM_NULL |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | ::MPI_Request MPI_REQUEST_NULL_STD = MPI_REQUEST_NULL; |
---|
| 14 | #undef MPI_REQUEST_NULL |
---|
| 15 | |
---|
| 16 | ::MPI_Info MPI_INFO_NULL_STD = MPI_INFO_NULL; |
---|
| 17 | #undef MPI_INFO_NULL |
---|
| 18 | |
---|
| 19 | ::MPI_Datatype MPI_INT_STD = MPI_INT; |
---|
| 20 | ::MPI_Datatype MPI_FLOAT_STD = MPI_FLOAT; |
---|
| 21 | ::MPI_Datatype MPI_DOUBLE_STD = MPI_DOUBLE; |
---|
| 22 | ::MPI_Datatype MPI_LONG_STD = MPI_LONG; |
---|
| 23 | ::MPI_Datatype MPI_CHAR_STD = MPI_CHAR; |
---|
| 24 | ::MPI_Datatype MPI_UNSIGNED_LONG_STD = MPI_UNSIGNED_LONG; |
---|
| 25 | ::MPI_Datatype MPI_UNSIGNED_CHAR_STD = MPI_UNSIGNED_CHAR; |
---|
| 26 | ::MPI_Datatype MPI_UINT64_T_STD = MPI_UINT64_T; |
---|
| 27 | ::MPI_Datatype MPI_LONG_LONG_INT_STD = MPI_LONG_LONG_INT; |
---|
| 28 | |
---|
| 29 | #undef MPI_INT |
---|
| 30 | #undef MPI_FLOAT |
---|
| 31 | #undef MPI_DOUBLE |
---|
| 32 | #undef MPI_LONG |
---|
| 33 | #undef MPI_CHAR |
---|
| 34 | #undef MPI_UNSIGNED_LONG |
---|
| 35 | #undef MPI_UNSIGNED_CHAR |
---|
| 36 | #undef MPI_UINT64_T |
---|
| 37 | #undef MPI_LONG_LONG_INT |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | ::MPI_Op MPI_SUM_STD = MPI_SUM; |
---|
| 41 | ::MPI_Op MPI_MAX_STD = MPI_MAX; |
---|
| 42 | ::MPI_Op MPI_MIN_STD = MPI_MIN; |
---|
| 43 | ::MPI_Op MPI_LOR_STD = MPI_LOR; |
---|
| 44 | ::MPI_Op MPI_REPLACE_STD = MPI_REPLACE; |
---|
| 45 | |
---|
| 46 | #undef MPI_SUM |
---|
| 47 | #undef MPI_MAX |
---|
| 48 | #undef MPI_MIN |
---|
| 49 | #undef MPI_LOR |
---|
| 50 | #undef MPI_REPLACE |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | // _STD defined in ep_type.cpp |
---|
| 54 | |
---|
| 55 | extern ::MPI_Datatype MPI_INT_STD; |
---|
| 56 | extern ::MPI_Datatype MPI_FLOAT_STD; |
---|
| 57 | extern ::MPI_Datatype MPI_DOUBLE_STD; |
---|
| 58 | extern ::MPI_Datatype MPI_LONG_STD; |
---|
| 59 | extern ::MPI_Datatype MPI_CHAR_STD; |
---|
| 60 | extern ::MPI_Datatype MPI_UNSIGNED_LONG_STD; |
---|
| 61 | extern ::MPI_Datatype MPI_UNSIGNED_CHAR_STD; |
---|
| 62 | extern ::MPI_Datatype MPI_UINT64_T_STD; |
---|
| 63 | extern ::MPI_Datatype MPI_LONG_LONG_INT_STD; |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | extern ::MPI_Op MPI_SUM_STD; |
---|
| 67 | extern ::MPI_Op MPI_MAX_STD; |
---|
| 68 | extern ::MPI_Op MPI_MIN_STD; |
---|
| 69 | extern ::MPI_Op MPI_LOR_STD; |
---|
| 70 | extern ::MPI_Op MPI_REPLACE_STD; |
---|
| 71 | |
---|
| 72 | extern ::MPI_Comm MPI_COMM_WORLD_STD; |
---|
| 73 | extern ::MPI_Comm MPI_COMM_NULL_STD; |
---|
| 74 | |
---|
| 75 | extern ::MPI_Status MPI_STATUS_IGNORE_STD; |
---|
| 76 | extern ::MPI_Request MPI_REQUEST_NULL_STD; |
---|
| 77 | extern ::MPI_Info MPI_INFO_NULL_STD; |
---|
| 78 | |
---|
| 79 | ep_lib::MPI_Datatype MPI_INT = &MPI_INT_STD; |
---|
| 80 | ep_lib::MPI_Datatype MPI_FLOAT = &MPI_FLOAT_STD; |
---|
| 81 | ep_lib::MPI_Datatype MPI_DOUBLE = &MPI_DOUBLE_STD; |
---|
| 82 | ep_lib::MPI_Datatype MPI_CHAR = &MPI_CHAR_STD; |
---|
| 83 | ep_lib::MPI_Datatype MPI_LONG = &MPI_LONG_STD; |
---|
| 84 | ep_lib::MPI_Datatype MPI_UNSIGNED_LONG = &MPI_UNSIGNED_LONG_STD; |
---|
| 85 | ep_lib::MPI_Datatype MPI_UNSIGNED_CHAR = &MPI_UNSIGNED_CHAR_STD; |
---|
| 86 | ep_lib::MPI_Datatype MPI_UINT64_T = &MPI_UINT64_T_STD; |
---|
| 87 | ep_lib::MPI_Datatype MPI_LONG_LONG_INT = &MPI_LONG_LONG_INT_STD; |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | ep_lib::MPI_Op MPI_SUM = &MPI_SUM_STD; |
---|
| 91 | ep_lib::MPI_Op MPI_MAX = &MPI_MAX_STD; |
---|
| 92 | ep_lib::MPI_Op MPI_MIN = &MPI_MIN_STD; |
---|
| 93 | ep_lib::MPI_Op MPI_LOR = &MPI_LOR_STD; |
---|
| 94 | ep_lib::MPI_Op MPI_REPLACE = &MPI_REPLACE_STD; |
---|
| 95 | |
---|
| 96 | ep_lib::ep_comm EP_COMM_WORLD(&MPI_COMM_WORLD_STD); |
---|
| 97 | ep_lib::ep_comm EP_COMM_NULL(&MPI_COMM_NULL_STD); |
---|
| 98 | |
---|
| 99 | ep_lib::MPI_Comm MPI_COMM_WORLD = &EP_COMM_WORLD; |
---|
| 100 | ep_lib::MPI_Comm MPI_COMM_NULL = &EP_COMM_NULL; |
---|
| 101 | |
---|
| 102 | //ep_lib::ep_status EP_STATUS_IGNORE(&MPI_STATUS_IGNORE_STD); |
---|
| 103 | ep_lib::ep_request EP_REQUEST_NULL(&MPI_REQUEST_NULL_STD); |
---|
| 104 | ep_lib::ep_info EP_INFO_NULL(&MPI_INFO_NULL_STD); |
---|
| 105 | |
---|
| 106 | //ep_lib::MPI_Status MPI_STATUS_IGNORE = &EP_STATUS_IGNORE; |
---|
| 107 | ep_lib::MPI_Request MPI_REQUEST_NULL = &EP_REQUEST_NULL; |
---|
| 108 | ep_lib::MPI_Info MPI_INFO_NULL = &EP_INFO_NULL; |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | |
---|