class Task_Fib : public MWTask

The task class specific to my Fibonacci example application

Inheritance:


Public Fields

int first
the first number in the fibonacci sequence
int* results
A pointer to the completed sequence
int second
the second number.
int sequencelength
How many numbers in the sequence? (incl. the first two)

Public Methods

void printself( int level = 60 )
dump self to screen:
Task_Fib()
Default Constructor
Task_Fib( int first, int second, int seqlen )
Construct with parameters
~Task_Fib()
Default Destructor

Public

Checkpointing Implementation
void write_ckpt_info( FILE *fp )
Write state
void read_ckpt_info( FILE *fp )
Read state
Implemented methods
void pack_work( void )
Pack the work for this task into the PVM buffer
void unpack_work( void )
Unpack the work for this task from the PVM buffer
void pack_results( void )
Pack the results from this task into the PVM buffer
void unpack_results( void )
Unpack the results from this task into the PVM buffer

Inherited from MWTask:

Public Fields

int number

Public

Checkpointing Utilities

virtual void write_ckpt_info( FILE *fp )
Write the state of this task out to a FILE*
virtual void read_ckpt_info( FILE *fp )
Read the state of this task from a FILE* (overwriting any existing state

List management

MWWorkerID* worker
A pointer to the worker ID executing this task (NULL if none)
MWTask* next
A pointer to the next task in the list (NULL if none)

Packing and Unpacking

virtual void pack_work( void )
Pack the work portion of the task
virtual void unpack_work( void )
Unpack the work portion of the task
virtual void pack_results( void )
Pack the result portion of the task
virtual void unpack_results( void )
Unpack the result portion of the task
virtual void printself( int level = 60 )
Dump this task to the screen

Time and usage data

double working_time
The time (wall clock) that it takes to run the 'execute_task' function on the worker's side
double cpu_time
The amount of user+system time taken by this task, measured from start to finish of the 'execute_task' function

Documentation

The task class specific to my Fibonacci example application.

...more to come...

Task_Fib()
Default Constructor

Task_Fib( int first, int second, int seqlen )
Construct with parameters
Parameters:
first - The first number in the pair of starting "seed" numbers
second - The second of the "seed" numbers
seqlen - The length of the sequence to make

~Task_Fib()
Default Destructor

Implemented methods
These are the task methods that must be implemented in order to create an application.

void pack_work( void )
Pack the work for this task into the PVM buffer

void unpack_work( void )
Unpack the work for this task from the PVM buffer

void pack_results( void )
Pack the results from this task into the PVM buffer

void unpack_results( void )
Unpack the results from this task into the PVM buffer

void printself( int level = 60 )
dump self to screen:

Checkpointing Implementation
These members used when checkpointing.

void write_ckpt_info( FILE *fp )
Write state

void read_ckpt_info( FILE *fp )
Read state

int first
the first number in the fibonacci sequence

int second
the second number.

int sequencelength
How many numbers in the sequence? (incl. the first two)

int* results
A pointer to the completed sequence


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de