PPL Logo

ATAReq Class Reference

#include <ampiimpl.h>

Inheritance diagram for ATAReq:

Inheritance graph
[legend]
Collaboration diagram for ATAReq:

Collaboration graph
[legend]

Public Member Functions

 ATAReq (int c_)
 ATAReq ()
 ~ATAReq (void)
int addReq (void *buf_, int count_, int type_, int src_, int tag_, MPI_Comm comm_)
CmiBool test (MPI_Status *sts)
 Return true if this request is finished (progress).
void complete (MPI_Status *sts)
 Completes the operation hanging on the request.
int wait (MPI_Status *sts)
 Block until this request is finished, returning a valid MPI error code.
void receive (ampi *ptr, AmpiMsg *msg)
int getCount (void)
int getType (void)
 Returns the type of request: 1-PersReq, 2-IReq, 3-ATAReq, 4-SReq, 5-GPUReq.
virtual void pup (PUP::er &p)
virtual void print ()

Private Attributes

Requestmyreqs
int elmcount
int idx

Data Structures

class  Request

Detailed Description

Definition at line 648 of file ampiimpl.h.


Constructor & Destructor Documentation

ATAReq::ATAReq ( int  c_  )  [inline]

Definition at line 678 of file ampiimpl.h.

References AmpiRequest::isvalid, and myreqs.

ATAReq::ATAReq (  )  [inline]

Definition at line 679 of file ampiimpl.h.

Referenced by AMPI_Iallgather(), and AMPI_Ialltoall().

ATAReq::~ATAReq ( void   )  [inline]

Definition at line 680 of file ampiimpl.h.

References myreqs.


Member Function Documentation

int ATAReq::addReq ( void *  buf_,
int  count_,
int  type_,
int  src_,
int  tag_,
MPI_Comm  comm_ 
) [inline]

CmiBool ATAReq::test ( MPI_Status sts  )  [virtual]

Return true if this request is finished (progress).

Implements AmpiRequest.

Definition at line 3832 of file ampi.C.

References AmpiRequest::comm, AmpiRequest::count, getAmpiInstance(), ampi::iprobe(), myreqs, AmpiRequest::src, and AmpiRequest::tag.

Referenced by AMPI_Test(), and AMPI_Testall().

void ATAReq::complete ( MPI_Status sts  )  [virtual]

Completes the operation hanging on the request.

Implements AmpiRequest.

Definition at line 3840 of file ampi.C.

References AmpiRequest::buf, AmpiRequest::comm, AmpiRequest::count, getAmpiInstance(), myreqs, AmpiRequest::src, AmpiRequest::tag, and AmpiRequest::type.

int ATAReq::wait ( MPI_Status sts  )  [virtual]

Block until this request is finished, returning a valid MPI error code.

Implements AmpiRequest.

Definition at line 3519 of file ampi.C.

References AmpiRequest::buf, AmpiRequest::comm, AmpiRequest::count, AmpiRequest::event, getAmpiInstance(), MPI_COMM_WORLD, myreqs, AmpiRequest::src, AmpiRequest::tag, and AmpiRequest::type.

void ATAReq::receive ( ampi ptr,
AmpiMsg msg 
) [inline, virtual]

Implements AmpiRequest.

Definition at line 690 of file ampiimpl.h.

int ATAReq::getCount ( void   )  [inline]

Definition at line 691 of file ampiimpl.h.

References elmcount.

int ATAReq::getType ( void   )  [inline, virtual]

Returns the type of request: 1-PersReq, 2-IReq, 3-ATAReq, 4-SReq, 5-GPUReq.

Implements AmpiRequest.

Definition at line 692 of file ampiimpl.h.

Referenced by AMPI_Test().

virtual void ATAReq::pup ( PUP::er p  )  [inline, virtual]

void ATAReq::print (  )  [virtual]

Reimplemented from AmpiRequest.

Definition at line 2308 of file ampi.C.

References CmiPrintf(), elmcount, idx, and AmpiRequest::print().


Field Documentation

Request* ATAReq::myreqs [private]

Definition at line 674 of file ampiimpl.h.

Referenced by addReq(), ATAReq(), complete(), pup(), test(), wait(), and ~ATAReq().

int ATAReq::elmcount [private]

Definition at line 675 of file ampiimpl.h.

Referenced by getCount(), print(), and pup().

int ATAReq::idx [private]

Definition at line 676 of file ampiimpl.h.

Referenced by addReq(), print(), and pup().


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

Generated on Thu May 24 07:56:32 2012 for Charm++ by  doxygen 1.5.5