PPL Logo

libs/ck-libs/liveViz/liveVizPoll.C File Reference

Go to the source code of this file.

Data Structures

class  liveVizPollArray

Functions

CkReductionMsgimagePollCombineReducer (int nMsg, CkReductionMsg **msgs)
 Called by the reduction manager to combine all the source images received on one processor.
void vizPollReductionHandler (void *r_msg)
void liveVizPollDeposit (ArrayElement *client, int startx, int starty, int sizex, int sizey, int imagewidth, int imageheight, const byte *src, liveVizCombine_t combine_reducer_type, int bytes_per_pixel)
 Th Poll Mode has been extensively rewritten, Please read the new description in the manual.
void liveVizPollInit ()
 Initialize the poll mode of liveViz.

Variables

CProxy_liveVizPollArray myGroupProxy
CkReduction::reducerType poll_image_combine_reducer
CkCallback clientGetImageCallback


Function Documentation

CkReductionMsg* imagePollCombineReducer ( int  nMsg,
CkReductionMsg **  msgs 
)

Called by the reduction manager to combine all the source images received on one processor.

This function adds all the image on one processor to one list of non-overlapping images.

Then the result is reduced onto processor zero in function vizPollReductionHandler()

Definition at line 98 of file liveVizPoll.C.

References CkReductionMsg::buildNew(), ImageData::CombineImageData(), ImageData::CombineImageDataSize(), CkReductionMsg::getData(), msg, and poll_image_combine_reducer.

Referenced by liveVizPollDeposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void vizPollReductionHandler ( void *  r_msg  ) 

Definition at line 124 of file liveVizPoll.C.

References dest, CkReductionMsg::getData(), CkRect::ht(), liveVizRequest::ht, CkRect::l, len, msg, myGroupProxy, imageHeader::r, imageHeader::req, src, CkRect::t, CkRect::wid(), and liveVizRequest::wid.

Referenced by liveVizPollDeposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void liveVizPollDeposit ( ArrayElement from,
int  startx,
int  starty,
int  sizex,
int  sizey,
int  imagewidth,
int  imageheight,
const byte imageData,
liveVizCombine_t  _image_combine_reducer = sum_image_data,
int  bytes_per_pixel = 3 
)

Th Poll Mode has been extensively rewritten, Please read the new description in the manual.

Note the big changes: liveVizPoll() no longer exists liveVizPollDeposit requires some additional parameters

Definition at line 150 of file liveVizPoll.C.

References ImageData::AddImage(), CkReduction::addReducer(), CkReductionMsg::buildNew(), Converse::CkMyPe(), ImageData::GetBuffSize(), CkReductionMsg::getData(), imagePollCombineReducer(), msg, poll_image_combine_reducer, CkReductionMsg::setCallback(), vizPollReductionHandler(), and ImageData::WriteHeader().

Here is the call graph for this function:

void liveVizPollInit (  ) 

Initialize the poll mode of liveViz.

This routine should be called from main::main.

Definition at line 187 of file liveVizPoll.C.

References Converse::CkMyPe(), liveViz0PollInit(), myGroupProxy, and request.

Here is the call graph for this function:


Variable Documentation

CProxy_liveVizPollArray myGroupProxy

Definition at line 30 of file liveVizPoll.C.

Referenced by liveVizPollInit(), and vizPollReductionHandler().

Definition at line 31 of file liveVizPoll.C.

Referenced by imagePollCombineReducer(), and liveVizPollDeposit().


Generated on Mon Sep 21 08:07:40 2020 for Charm++ by  doxygen 1.5.5