class MWIndRC : public MWRMComm This class is an derived from the Resource Management (RM) and Communication (Comm) layer
This class is an derived from the Resource Management (RM) and Communication (Comm) layer. In MW-Ind, there is just one worker and one master and both are on the same machine. And not just that both are same process!! Send and Recv are merely memcpy. This class I deem is useful for debugging purposes. The api etc all will remain the same when using this layer. All the user has to do is to compile it with the INDEPENDENT flag and use this as the RMComm layer. See into the fibonacci example for more details on the makefile. And then just launch the application as a process. That's it.
The return value is user defined. It should be standardized,
but I'll do that later.
MWIndRC()
~MWIndRC()
A. Resource Management Functions
void exit( int exitval )
int setup( int argc, char* argv[], int *my_id, int *master_id)
int config( int *nhosts, int *narches, MWWorkerID ***w )
int start_worker( MWWorkerID *w )
int init_beginning_workers( int *nworkers, MWWorkerID ***workers )
int removeWorker( MWWorkerID *w )
B. Checkpointing Functions
D. Host Management Members
The Communication Routines
int initsend( int encoding = 0 )
int send( int to_whom, int msgtag )
msgtag - A 'tag' to identify that type of message
int recv( int from_whom, int msgtag )
msgtag - With a certain tag; -1 is all.
int bufinfo( int buf_id, int *len, int *tag, int *from )
Pack Functions
int pack( char *bytes, int nitem, int stride = 1 )
int pack( float *f, int nitem, int stride = 1 )
int pack( double *d, int nitem, int stride = 1 )
int pack( int *i, int nitem, int stride = 1 )
int pack( unsigned int *ui, int nitem, int stride = 1 )
int pack( short *sh, int nitem, int stride = 1 )
int pack( unsigned short *ush, int nitem, int stride = 1 )
int pack( long *l, int nitem, int stride = 1 )
int pack( unsigned long *ul, int nitem, int stride = 1 )
Unpack Functions
int unpack( char *bytes, int nitem, int stride = 1 )
int unpack( float *f, int nitem, int stride = 1 )
int unpack( double *d, int nitem, int stride = 1 )
int unpack( int *i, int nitem, int stride = 1 )
int unpack( unsigned int *ui, int nitem, int stride = 1 )
int unpack( short *sh, int nitem, int stride = 1 )
int unpack( unsigned short *ush, int nitem, int stride = 1 )
int unpack( long *l, int nitem, int stride = 1 )
int unpack( unsigned long *ul, int nitem, int stride = 1 )
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de