Global functions and variables for working with parallel streams, but principally for MPI. More...
Functions | |
void | checkCommunicator (const label comm, const label toProcNo) |
Fatal if comm is outside the allocated range. More... | |
void | reset_request (UPstream::Request *requestPtr, label *requestIdx=nullptr) |
Reset UPstream::Request to null and/or the index of the outstanding request to -1. More... | |
void | push_request (MPI_Request request, UPstream::Request *requestPtr=nullptr, label *requestIdx=nullptr) |
Transcribe MPI_Request to UPstream::Request (does not affect the stack of outstanding requests) or else push onto list of outstanding requests and (optionally) record its location. More... | |
Variables | |
DynamicList< bool > | pendingMPIFree_ |
DynamicList< MPI_Comm > | MPICommunicators_ |
DynamicList< MPI_Request > | outstandingRequests_ |
Outstanding non-blocking operations. More... | |
Global functions and variables for working with parallel streams, but principally for MPI.
void checkCommunicator | ( | const label | comm, |
const label | toProcNo | ||
) |
Fatal if comm is outside the allocated range.
Definition at line 34 of file PstreamGlobals.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, MPICommunicators_, and Foam::nl.
|
inline |
Reset UPstream::Request to null and/or the index of the outstanding request to -1.
Does not affect the stack of outstanding requests.
Definition at line 77 of file PstreamGlobals.H.
Referenced by UPstream_mpi_receive().
|
inline |
Transcribe MPI_Request to UPstream::Request (does not affect the stack of outstanding requests) or else push onto list of outstanding requests and (optionally) record its location.
Definition at line 94 of file PstreamGlobals.H.
References outstandingRequests_.
Referenced by UPstream_mpi_receive().
Foam::DynamicList< bool > pendingMPIFree_ |
Definition at line 26 of file PstreamGlobals.C.
Foam::DynamicList< MPI_Comm > MPICommunicators_ |
Definition at line 27 of file PstreamGlobals.C.
Referenced by checkCommunicator(), and UPstream_mpi_receive().
Foam::DynamicList< MPI_Request > outstandingRequests_ |
Outstanding non-blocking operations.
Definition at line 28 of file PstreamGlobals.C.
Referenced by push_request(), and UPstream_mpi_receive().