PPL Logo

ConvComlibManager Class Reference
[Converse Communication Optimization Framework]

Converse interface to handle all the Comlib strategies registered in the Converse of Charm++ program. More...

#include <convcomlibmanager.h>

Collaboration diagram for ConvComlibManager:

Collaboration graph
[legend]

Public Member Functions

 ConvComlibManager ()
void setInitialized ()
CmiBool getInitialized ()
void doneCreating ()
 Used to broadcast all strategies to all processors after inserting them.
void tableReady ()
 Switch all the strategies in the "inSync" status to "ready" and deposit into the strategies all pending messages.
void enableStrategy (int loc)
void setStrategy (int loc, Strategy *s)
int getNumStrats ()
void incrementNumStrats ()
void decrementNumStrats ()
StrategygetStrategy (int loc)
int isReady (int loc)
int isNew (int loc)
int isInSync (int loc)
void inSync (int loc)
CkQ< MessageHolder * > * getTmpList (int loc)
void insertMessage (MessageHolder *msg, int instid)
void doneInserting (int loc)
StrategyTableEntrygetStrategyTable (int loc)
void printDiagnostics ()

Data Fields

int acksReceived
 count how many acks have been received for the current synchronization
CmiBool doneCreatingScheduled
 used when a doneCreating is called before the previous one is finished
CmiBool busy
 true when the manager is busy synchronizing the strategies

Private Member Functions

int insertStrategy (Strategy *s)
 Insert a strategy into the system table, and return a handle to be used to access the strategy later.

Private Attributes

StrategyTable strategyTable
 a table containing all the strategies in the system
CmiBool init_flag
 it is true after the system has been initialized at the program startup
int nstrats
 the number of strategies currently present in the system

Friends

class Strategy
void * comlibReceiveTableHandler (void *msg)
 Method invoked upon receipt of the strategy table.

Detailed Description

Converse interface to handle all the Comlib strategies registered in the Converse of Charm++ program.

Being in Converse, this is a pure class allocated into a global variable.

Definition at line 39 of file convcomlibmanager.h.


Member Function Documentation

void ConvComlibManager::setInitialized (  )  [inline]

Definition at line 61 of file convcomlibmanager.h.

References CmiTrue, and init_flag.

CmiBool ConvComlibManager::getInitialized (  )  [inline]

Definition at line 62 of file convcomlibmanager.h.

References init_flag.

Referenced by initConvComlibManager().

void ConvComlibManager::setStrategy ( int  loc,
Strategy s 
) [inline]

Definition at line 76 of file convcomlibmanager.h.

References CmiAbort(), and strategyTable.

int ConvComlibManager::getNumStrats (  )  [inline]

Definition at line 84 of file convcomlibmanager.h.

References nstrats.

Referenced by ComlibManager::sendBufferedMessagesAllStrategies().

void ConvComlibManager::incrementNumStrats (  )  [inline]

Definition at line 85 of file convcomlibmanager.h.

References nstrats.

void ConvComlibManager::decrementNumStrats (  )  [inline]

Definition at line 86 of file convcomlibmanager.h.

References nstrats.

Strategy* ConvComlibManager::getStrategy ( int  loc  )  [inline]

Definition at line 87 of file convcomlibmanager.h.

References strategyTable.

Referenced by ComlibManager::getStrategy().

int ConvComlibManager::isReady ( int  loc  )  [inline]

int ConvComlibManager::isNew ( int  loc  )  [inline]

Definition at line 89 of file convcomlibmanager.h.

References strategyTable.

Referenced by doneCreating().

int ConvComlibManager::isInSync ( int  loc  )  [inline]

Definition at line 90 of file convcomlibmanager.h.

References strategyTable.

Referenced by tableReady().

void ConvComlibManager::inSync ( int  loc  )  [inline]

Definition at line 91 of file convcomlibmanager.h.

References strategyTable.

CkQ<MessageHolder*>* ConvComlibManager::getTmpList ( int  loc  )  [inline]

Definition at line 96 of file convcomlibmanager.h.

References strategyTable.

void ConvComlibManager::doneInserting ( int  loc  )  [inline]

StrategyTableEntry* ConvComlibManager::getStrategyTable ( int  loc  )  [inline]


Friends And Related Function Documentation

friend class Strategy [friend]

Definition at line 48 of file convcomlibmanager.h.

void* comlibReceiveTableHandler ( void *  msg  )  [friend]

Method invoked upon receipt of the strategy table.

Definition at line 137 of file convcomlibmanager.C.

Referenced by initConvComlibManager().


Field Documentation

it is true after the system has been initialized at the program startup

Definition at line 44 of file convcomlibmanager.h.

Referenced by ConvComlibManager(), getInitialized(), and setInitialized().

the number of strategies currently present in the system

Definition at line 46 of file convcomlibmanager.h.

Referenced by ConvComlibManager(), decrementNumStrats(), doneCreating(), getNumStrats(), incrementNumStrats(), and insertStrategy().

count how many acks have been received for the current synchronization

Definition at line 53 of file convcomlibmanager.h.

Referenced by ConvComlibManager(), and doneCreating().

used when a doneCreating is called before the previous one is finished

Definition at line 55 of file convcomlibmanager.h.

Referenced by ConvComlibManager(), and doneCreating().

true when the manager is busy synchronizing the strategies

Definition at line 57 of file convcomlibmanager.h.

Referenced by ConvComlibManager(), and doneCreating().


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

Generated on Fri May 25 08:02:50 2012 for Charm++ by  doxygen 1.5.5