PPL Logo

ck::impl::XArraySectionReducer Class Reference

Helper class to complete the last step in a cross-array reduction. More...

#include <XArraySectionReducer.h>

Collaboration diagram for ck::impl::XArraySectionReducer:

Collaboration graph
[legend]

Public Member Functions

 XArraySectionReducer (int _numSubSections, CkCallback *_finalCB)
 ~XArraySectionReducer ()
void acceptSectionContribution (CkReductionMsg *msg)
 Each subsection reduction message needs to be passed in here.

Private Member Functions

void finalReducer ()
 Triggered after all subsections have completed their reductions.

Private Attributes

const int numSubSections
const CkCallbackfinalCB
int numReceived
CkReductionMsg ** msgList

Detailed Description

Helper class to complete the last step in a cross-array reduction.

Simply buffers a bunch of reduction messages as they arrive via subsection reductions and performs a final reduction on these to generate the final reduced message which is passed on to the client.

Note:
: Temporary entity meant to exist only until delegated cross-array reductions are implemented more optimally.

Definition at line 18 of file XArraySectionReducer.h.


Constructor & Destructor Documentation

ck::impl::XArraySectionReducer::XArraySectionReducer ( int  _numSubSections,
CkCallback _finalCB 
) [inline]

Definition at line 22 of file XArraySectionReducer.h.

References msgList, and numSubSections.

ck::impl::XArraySectionReducer::~XArraySectionReducer (  )  [inline]

Definition at line 31 of file XArraySectionReducer.h.

References finalCB, and msgList.


Member Function Documentation

void ck::impl::XArraySectionReducer::acceptSectionContribution ( CkReductionMsg *  msg  )  [inline]

Each subsection reduction message needs to be passed in here.

Definition at line 38 of file XArraySectionReducer.h.

References finalReducer(), msgList, numReceived, and numSubSections.

void ck::impl::XArraySectionReducer::finalReducer (  )  [inline, private]

Triggered after all subsections have completed their reductions.

Definition at line 47 of file XArraySectionReducer.h.

References finalCB, msgList, numReceived, numSubSections, CkReduction::reducerTable, and CkCallback::send().

Referenced by acceptSectionContribution().


Field Documentation

Definition at line 66 of file XArraySectionReducer.h.

Referenced by finalReducer(), and ~XArraySectionReducer().

Definition at line 68 of file XArraySectionReducer.h.

Referenced by acceptSectionContribution(), and finalReducer().

CkReductionMsg** ck::impl::XArraySectionReducer::msgList [private]


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

Generated on Fri May 25 08:06:00 2012 for Charm++ by  doxygen 1.5.5