PPL Logo

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

Go to the source code of this file.

Functions

 PUPbytes (liveVizConfig)
void liveVizInitComplete (void *rednMessage)
void liveViz0Get (const liveVizRequest &req, void *data, int dataLen)
 Called when the client requests an image as described above.
void liveVizDeposit (const liveVizRequest &req, int startx, int starty, int sizex, int sizey, const byte *src, ArrayElement *client, liveVizCombine_t combine)
 Called by clients to deposit a piece of the final image.
CkReductionMsg * imageCombineReducer (int nMsg, CkReductionMsg **msgs)
 Called by the reduction manager to combine all the source images received on one processor.
void vizReductionHandler (void *r_msg)
static void liveVizNodeInit (void)
CkReductionMsg * allocateImageMsg (const liveVizRequest &req, const CkRect &r, byte **imgDest)
void liveVizDeposit (const liveVizRequest &req, int startx, int starty, int sizex, int sizey, const byte *src, ArrayElement *client)
CkReductionMsg * imageCombine (int nMsg, CkReductionMsg **msgs)

Variables

static byteoverflowArray = CkImage::newClip()


Function Documentation

PUPbytes ( liveVizConfig   ) 

Definition at line 10 of file liveViz.C.

References Converse::CkMyPe().

void liveVizInitComplete ( void *  rednMessage  ) 

Definition at line 31 of file liveViz.C.

References liveViz0Init(), and lv_config.

Referenced by liveVizGroup::liveVizGroup().

void liveViz0Get ( const liveVizRequest req,
void *  data,
int  dataLen 
)

Called when the client requests an image as described above.

You must implement this routine, which will be called from a single processor. data and dataLen are additional data supplied with the CCS request. This routine is called on the processor where the request arrives; this is normally processor 0.

Definition at line 48 of file liveViz.C.

References liveVizRequestMsg::buildNew(), clientGetImageCallback, and CkCallback::send().

Referenced by getImageHandler().

void liveVizDeposit ( const liveVizRequest req,
int  startx,
int  starty,
int  sizex,
int  sizey,
const byte src,
ArrayElement client,
liveVizCombine_t  combine 
)

Called by clients to deposit a piece of the final image.

Starts the reduction process.

Definition at line 71 of file liveViz.C.

References Converse::CkMyPe(), liveVizConfig::getBytesPerPixel(), liveVizConfig::getVerbose(), liveVizRequest::ht, lv_config, msg, vizReductionHandler(), and liveVizRequest::wid.

Referenced by liveVizDeposit(), and impl_LV3D_Array::LV3D_FlatRender().

CkReductionMsg* imageCombineReducer ( 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.

Definition at line 104 of file liveViz.C.

References Converse::CkMyPe(), liveVizConfig::getBytesPerPixel(), liveVizConfig::getVerbose(), lv_config, and msg.

Referenced by allocateImageMsg(), and liveVizNodeInit().

void vizReductionHandler ( void *  r_msg  ) 

static void liveVizNodeInit ( void   )  [static]

Definition at line 157 of file liveViz.C.

References CkReduction::addReducer(), and imageCombineReducer().

CkReductionMsg* allocateImageMsg ( const liveVizRequest req,
const CkRect r,
byte **  imgDest 
)

void liveVizDeposit ( const liveVizRequest req,
int  startx,
int  starty,
int  sizex,
int  sizey,
const byte src,
ArrayElement client 
)

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


Variable Documentation

byte* overflowArray = CkImage::newClip() [static]

Definition at line 57 of file liveViz.C.

Referenced by imageCombine().


Generated on Sat May 26 08:08:09 2012 for Charm++ by  doxygen 1.5.5