58 MPI_Comm comm,
MpiLock* mpi_lock,
74 void broadcast(
void* buf,
Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
75 void allGather(
const void* send_buf,
void* recv_buf,
76 Int64 nb_elem, MPI_Datatype datatype);
77 void gather(
const void* send_buf,
void* recv_buf,
78 Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
79 void allGatherVariable(
const void* send_buf,
void* recv_buf,
const int* recv_counts,
80 const int* recv_indexes,
Int64 nb_elem, MPI_Datatype datatype);
81 void gatherVariable(
const void* send_buf,
void* recv_buf,
const int* recv_counts,
82 const int* recv_indexes,
Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
83 void scatterVariable(
const void* send_buf,
const int* send_count,
const int* send_indexes,
84 void* recv_buf,
Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
85 void allToAll(
const void* send_buf,
void* recv_buf,
Int32 count, MPI_Datatype datatype);
86 void allToAllVariable(
const void* send_buf,
const int* send_counts,
87 const int* send_indexes,
void* recv_buf,
const int* recv_counts,
88 const int* recv_indexes, MPI_Datatype datatype);
89 void reduce(
const void* send_buf,
void* recv_buf,
Int64 count, MPI_Datatype datatype, MPI_Op op,
Int32 root);
90 void allReduce(
const void* send_buf,
void* recv_buf,
Int64 count, MPI_Datatype datatype, MPI_Op op);
91 void scan(
const void* send_buf,
void* recv_buf,
Int64 count, MPI_Datatype datatype, MPI_Op op);
92 void directSendRecv(
const void* send_buffer,
Int64 send_buffer_size,
93 void* recv_buffer,
Int64 recv_buffer_size,
94 Int32 proc,
Int64 elem_size, MPI_Datatype data_type);
96 Request directSend(
const void* send_buffer,
Int64 send_buffer_size,
97 Int32 proc,
Int64 elem_size, MPI_Datatype data_type,
98 int mpi_tag,
bool is_blocked);
102 Int32 proc, MPI_Datatype data_type,
int mpi_tag);
104 Request directRecv(
void* recv_buffer,
Int64 recv_buffer_size,
105 Int32 source_rank,
Int64 elem_size, MPI_Datatype data_type,
106 int mpi_tag,
bool is_blocked);
110 Int32 source_rank, MPI_Datatype data_type,
int mpi_tag);
112 Request directSendPack(
const void* send_buffer,
Int64 send_buffer_size,
113 Int32 proc,
int mpi_tag,
bool is_blocked);
121 Request directRecv(
void* recv_buffer,
Int64 recv_buffer_size,
125 Request directRecvPack(
void* recv_buffer,
Int64 recv_buffer_size,
126 Int32 proc,
int mpi_tag,
bool is_blocking);
139 bool is_non_blocking);
155 void freeRequest(
Request& request);
156 bool testRequest(
Request& request);
158 void enableDebugRequest(
bool enable_debug_request);
160 MpiLock* mpiLock()
const {
return m_mpi_lock; }
162 Request nonBlockingBroadcast(
void* buf,
Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
163 Request nonBlockingAllGather(
const void* send_buf,
void* recv_buf,
Int64 nb_elem, MPI_Datatype datatype);
164 Request nonBlockingGather(
const void* send_buf,
void* recv_buf,
Int64 nb_elem,
Int32 root, MPI_Datatype datatype);
166 Request nonBlockingAllToAll(
const void* send_buf,
void* recv_buf,
Int32 count, MPI_Datatype datatype);
167 Request nonBlockingAllReduce(
const void* send_buf,
void* recv_buf,
Int64 count, MPI_Datatype datatype, MPI_Op op);
168 Request nonBlockingAllToAllVariable(
const void* send_buf,
const int* send_counts,
169 const int* send_indexes,
void* recv_buf,
const int* recv_counts,
170 const int* recv_indexes, MPI_Datatype datatype);
175 int toMPISize(
Int64 count);
178 Request buildRequest(
int ret, MPI_Request request);
183 void setRequestErrorAreFatal(
bool v);
184 bool isRequestErrorAreFatal()
const;
187 void setPrintRequestError(
bool v);
188 bool isPrintRequestError()
const;
192 bool isTraceMPIMessage()
const {
return m_is_trace; }
199 void setCheckRequest(
bool v);
200 bool isCheckRequest()
const;
214 bool isAllowNullRankForAnySource()
const {
return m_is_allow_null_rank_for_any_source; }
218 void initializeWindowCreator(MPI_Comm comm_machine);
219 MpiMachineShMemWinBaseInternalCreator* windowCreator()
const;
223 IStat* m_stat =
nullptr;
224 MpiLock* m_mpi_lock =
nullptr;
225 IMpiProfiling* m_mpi_prof =
nullptr;
226 ITimeMetricCollector* m_metric_collector =
nullptr;
228 int m_comm_rank = A_PROC_NULL_RANK;
230 Int64 m_nb_all_reduce = 0;
231 Int64 m_nb_reduce = 0;
232 bool m_is_trace =
false;
236 MPI_Request m_empty_request2;
237 int m_recv_buffer_for_empty_request[1];
238 int m_send_buffer_for_empty_request2[1];
239 int m_recv_buffer_for_empty_request2[1];
246 bool m_is_allow_null_rank_for_any_source =
true;
252 void _trace(
const char* function);
255 void _checkFatalInRequest();
260 void _checkHasNoRequests();