PPL Logo

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

Go to the source code of this file.

Functions

 PUPbytes (liveVizConfig)
void liveVizInit (const liveVizConfig &cfg, CkArrayID a, CkCallback c, CkArrayOptions &opts)
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.
CkReductionMsgimageCombineReducer (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)
CkReductionMsgallocateImageMsg (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)
CkReductionMsgimageCombine (int nMsg, CkReductionMsg **msgs)

Variables

static byteoverflowArray = CkImage::newClip()


Function Documentation

PUPbytes ( liveVizConfig   ) 

Definition at line 10 of file liveViz.C.

References Converse::CkMyPe().

Here is the call graph for this function:

void liveVizInit ( const liveVizConfig cfg,
CkArrayID  a,
CkCallback  c,
CkArrayOptions opts 
)

Definition at line 33 of file liveViz.C.

References CkArrayOptions::bindTo(), Converse::CkMyPe(), clientGetImageCallback, CmiAbort(), CkArrayOptions::getNumInitial(), lvG, and CkArrayOptions::setNumInitial().

Referenced by LV3D1_Init().

Here is the call graph for this function:

Here is the caller graph for this function:

void liveVizInitComplete ( void *  rednMessage  ) 

Definition at line 57 of file liveViz.C.

References liveViz0Init(), and lv_config.

Referenced by liveVizGroup::liveVizGroup().

Here is the call graph for this function:

Here is the caller graph for this function:

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 74 of file liveViz.C.

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

Referenced by getImageHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

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 97 of file liveViz.C.

References CkReductionMsg::buildNew(), Converse::CkMyPe(), liveVizConfig::getBytesPerPixel(), liveVizConfig::getVerbose(), liveVizRequest::ht, lv_config, msg, CkReductionMsg::setCallback(), CkMigratable::thisIndexMax, vizReductionHandler(), and liveVizRequest::wid.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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 134 of file liveViz.C.

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

Referenced by allocateImageMsg(), and liveVizNodeInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void vizReductionHandler ( void *  r_msg  ) 

Definition at line 160 of file liveViz.C.

References Converse::CkMyPe(), liveVizConfig::getBytesPerPixel(), CkReductionMsg::getData(), liveVizConfig::getNetworkBytesPerPixel(), liveVizConfig::getVerbose(), liveViz0Deposit(), liveVizFloatToRGB(), lv_config, msg, and liveVizRequestMsg::req.

Referenced by liveVizDeposit().

Here is the call graph for this function:

Here is the caller graph for this function:

static void liveVizNodeInit ( void   )  [static]

Definition at line 187 of file liveViz.C.

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

Here is the call graph for this function:

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

Definition at line 206 of file liveViz.C.

References CkRect::area(), CkReductionMsg::buildNew(), dest, liveVizConfig::getBytesPerPixel(), CkReductionMsg::getData(), imageCombineReducer(), lv_config, and msg.

Referenced by imageCombine(), and liveVizDeposit().

Here is the call graph for this function:

Here is the caller graph for this function:

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 83 of file liveViz.C.

Referenced by imageCombine().


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