#define FALSE FALSE is defined as 0
FALSE is defined as 0
The return value is user defined. It should be standardized,
but I'll do that later.
virtual ~MWRMComm()
A. Resource Management Functions
virtual void exit( int exitval )
virtual int setup( int argc, char* argv[], int *my_id, int *master_id )
virtual int config( int *nhosts, int *narches, MWWorkerID ***w )
narches - The number of architechture classes
w - A pointer to a pointer to an array of pointers.
This should be NULL when called; config() will allocate
the memory using new and return it to you. Don't forget
to delete not only the elements in that array, but
also the array itself. The array will have nhosts
elements, and they will each represent a worker
machine.
virtual int start_worker( MWWorkerID *w )
virtual int init_beginning_workers( int *nworkers, MWWorkerID ***workers )
workers - A pointer to a pointer to an array of
MWWorkerID pointers. The memory management for this
is the same as it is for the config() call - it should
be null when called and will point to allocated memory
when it comes back.
virtual int removeWorker( MWWorkerID *w )
B. Checkpointing Functions
C. Other public functions
void set_worker_attributes( int arch_class, char *exec_name, char *requirements )
exec_name - The name of the worker executable for
this arch class.
requirements - A string containing the "requirements"
attribute of a given arch class of workers. This will
be something that can be used in a submit file, like
"(arch == \"INTEL\" && opsys == \"SOLARIS26\")"
virtual void processExec( char*, char* )
int get_num_arches()
void set_num_arches( int n )
virtual void set_worker_checkpointing( bool wc )
D. Host Management Members
virtual int hostaddlogic( int *num_workers )
void set_target_num_workers( int num_workers )
E. Some Protected Data
char worker_executables[16][_POSIX_PATH_MAX]
char worker_requirements[16][1024]
int target_num_workers
int num_arches
bool worker_checkpointing
The Communication Routines
virtual int initsend( int encoding = 0 )
virtual int send( int to_whom, int msgtag )
msgtag - A 'tag' to identify that type of message
virtual int recv( int from_whom, int msgtag )
msgtag - With a certain tag; -1 is all.
virtual int bufinfo( int buf_id, int *len, int *tag, int *from )
virtual void hostadd( )
Pack Functions
virtual int pack( char *bytes, int nitem, int stride = 1 )
virtual int pack( float *f, int nitem, int stride = 1 )
virtual int pack( double *d, int nitem, int stride = 1 )
virtual int pack( int *i, int nitem, int stride = 1 )
virtual int pack( unsigned int *ui, int nitem, int stride = 1 )
virtual int pack( short *sh, int nitem, int stride = 1 )
virtual int pack( unsigned short *ush, int nitem, int stride = 1 )
virtual int pack( long *l, int nitem, int stride = 1 )
virtual int pack( unsigned long *ul, int nitem, int stride = 1 )
virtual int pack( char *string )
Unpack Functions
virtual int unpack( char *bytes, int nitem, int stride = 1 )
virtual int unpack( float *f, int nitem, int stride = 1 )
virtual int unpack( double *d, int nitem, int stride = 1 )
virtual int unpack( int *i, int nitem, int stride = 1 )
virtual int unpack( unsigned int *ui, int nitem, int stride = 1 )
virtual int unpack( short *sh, int nitem, int stride = 1 )
virtual int unpack( unsigned short *ush, int nitem, int stride = 1 )
virtual int unpack( long *l, int nitem, int stride = 1 )
virtual int unpack( unsigned long *ul, int nitem, int stride = 1 )
virtual int unpack( char *string )
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de