Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Tpetra::Details::CommRequest Class Reference

Base class for the request (more or less a future) representing a pending nonblocking MPI operation. More...

#include <Tpetra_Details_iallreduce.hpp>

Public Member Functions

virtual ~CommRequest ()
 Destructor (virtual for memory safety of derived classes). More...
 
virtual void wait ()
 Wait on this communication request to complete. More...
 
virtual void cancel ()
 Cancel the pending communication request. More...
 

Detailed Description

Base class for the request (more or less a future) representing a pending nonblocking MPI operation.

We recommend using auto to interact with this class. For example, use auto for the type of the return value of iallreduce() (see below).

Definition at line 63 of file Tpetra_Details_iallreduce.hpp.

Constructor & Destructor Documentation

virtual Tpetra::Details::CommRequest::~CommRequest ( )
inlinevirtual

Destructor (virtual for memory safety of derived classes).

Definition at line 66 of file Tpetra_Details_iallreduce.hpp.

Member Function Documentation

virtual void Tpetra::Details::CommRequest::wait ( )
inlinevirtual

Wait on this communication request to complete.

This is a blocking operation. The user is responsible for avoiding deadlock. This operation must also be idempotent.

Definition at line 72 of file Tpetra_Details_iallreduce.hpp.

virtual void Tpetra::Details::CommRequest::cancel ( )
inlinevirtual

Cancel the pending communication request.

This operation must be idempotent.

Definition at line 77 of file Tpetra_Details_iallreduce.hpp.


The documentation for this class was generated from the following file: