|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Base class MPI implementation of CommRequest. More...
#include <Teuchos_DefaultMpiComm.hpp>

Public Member Functions | |
| MpiCommRequestBase () | |
| Default constructor. More... | |
| MpiCommRequestBase (MPI_Request rawMpiRequest) | |
| Constructor (from a raw MPI_Request). More... | |
| MPI_Request | releaseRawMpiRequest () |
| Return and relinquish ownership of the raw MPI_Request. More... | |
| bool | isNull () const |
Whether the raw MPI_Request is MPI_REQUEST_NULL. More... | |
| RCP< CommStatus< OrdinalType > > | wait () |
| Wait on this communication request to complete. More... | |
| RCP< CommStatus< OrdinalType > > | cancel () |
| Cancel the communication request, and return its status. More... | |
| virtual | ~MpiCommRequestBase () |
| Destructor; cancels the request if it is still pending. More... | |
Public Member Functions inherited from Teuchos::CommRequest< OrdinalType > | |
| virtual | ~CommRequest () |
| Destructor; cancels the request if it is still pending. More... | |
Public Member Functions inherited from Teuchos::Describable | |
| virtual std::string | description () const |
| Return a simple one-line description of this object. More... | |
| virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| Print the object with some verbosity level to a FancyOStream. More... | |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| Version of describe() that takes an std::ostream instead of a FancyOStream. More... | |
| virtual | ~Describable () |
| Destructor (marked virtual for memory safety of derived classes). More... | |
Public Member Functions inherited from Teuchos::LabeledObject | |
| LabeledObject () | |
| Construct with an empty label. More... | |
| virtual | ~LabeledObject () |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| Set the object label (see LabeledObject). More... | |
| virtual std::string | getObjectLabel () const |
| Get the object label (see LabeledObject). More... | |
Private Attributes | |
| MPI_Request | rawMpiRequest_ |
| The raw MPI request (an opaque object). More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default = VERB_DEFAULT |
Default value for the verbLevel argument of describe(). More... | |
Related Functions inherited from Teuchos::Describable | |
| DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
| Describable output stream manipulator. More... | |
| std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
| Output stream operator for Describable manipulator. More... | |
Base class MPI implementation of CommRequest.
| OrdinalType | Same as the template parameter of Comm. |
This class wraps MPI_Request, which is MPI's reification of a nonblocking communication operation.
Users would not normally create an instance of this class. Calls to nonblocking communication operations (such as ireceive() or isend()) return a pointer to a CommRequest. If the Comm is an MpiComm, then the returned CommRequest is an MpiCommRequest.
Users might wish to create an MpiCommRequest directly if they want to encapsulate an MPI_Request returned by an external library or by their own code.
Definition at line 182 of file Teuchos_DefaultMpiComm.hpp.
|
inline |
Default constructor.
Definition at line 185 of file Teuchos_DefaultMpiComm.hpp.
|
inline |
Constructor (from a raw MPI_Request).
Definition at line 190 of file Teuchos_DefaultMpiComm.hpp.
|
inlinevirtual |
Destructor; cancels the request if it is still pending.
Definition at line 260 of file Teuchos_DefaultMpiComm.hpp.
|
inline |
Return and relinquish ownership of the raw MPI_Request.
"Relinquish ownership" means that this object sets its raw MPI_Request to MPI_REQUEST_NULL, but returns the original MPI_Request. This effectively gives the caller ownership of the raw MPI_Request. This prevents hanging requests.
Definition at line 201 of file Teuchos_DefaultMpiComm.hpp.
|
inline |
Whether the raw MPI_Request is MPI_REQUEST_NULL.
Definition at line 209 of file Teuchos_DefaultMpiComm.hpp.
|
inlinevirtual |
Wait on this communication request to complete.
This is a blocking operation. The user is responsible for avoiding deadlock. (For example, a receive must have a matching send, otherwise a wait on the receive will wait forever.)
Implements Teuchos::CommRequest< OrdinalType >.
Definition at line 218 of file Teuchos_DefaultMpiComm.hpp.
|
inline |
Cancel the communication request, and return its status.
If this request is invalid or has already been invalidated, this method returns null.
Definition at line 235 of file Teuchos_DefaultMpiComm.hpp.
|
private |
The raw MPI request (an opaque object).
Definition at line 289 of file Teuchos_DefaultMpiComm.hpp.
1.8.11