/home/aching/Avery/Work.School/Research/pvfs2-lock/s3asim/src/mpe_init.h File Reference

#include <string.h>
#include <stdio.h>
#include "mpi.h"
#include <stdlib.h>
#include <sys/time.h>

Data Structures

struct  mpe_events_s

Functions

int timing_reduce (int myid, int numprocs, struct mpe_events_s *mpe_events)
void print_timing (int myid, struct mpe_events_s *mpe_events)
int custom_MPE_Log_event (int event, int data, char *string, struct mpe_events_s *mpe_events)
int init_mpe_events (struct mpe_events_s *mpe_events)
int init_mpe_describe_state (struct mpe_events_s *mpe_events)

Function Documentation

int custom_MPE_Log_event ( int  event,
int  data,
char *  string,
struct mpe_events_s mpe_events 
)

A set of events are defined by another function. Using the event numbers, the correct timing procedure is done here. Start or stop timers and add to profiling information.

Parameters:
event Event number to process.
data If MPE is used, this int is logged.
string If MPE is used, this string is logged.
mpe_events_p Pointer to timing structure.
Returns:
0 on success.

int init_mpe_describe_state ( struct mpe_events_s mpe_events  ) 

int init_mpe_events ( struct mpe_events_s mpe_events  ) 

If MPE is used, this function defines the event numbers with the MPE_Log_get_event_number() function. Otherwise, the event numbers are predefined.

Parameters:
mpe_events_p Pointer to timing structure.
Returns:
0 on success.

void print_timing ( int  myid,
struct mpe_events_s mpe_events 
)

Print the timing information for the mpe_events structure. This is generally used for debugging.

Parameters:
myid MPI myid.
mpe_events_p Pointer to timing structure.

int timing_reduce ( int  myid,
int  numprocs,
struct mpe_events_s mpe_events 
)

All MPE information and timing information is stored in the mpe_events structure. The timings are reduced to the master and are printed by the master.

Parameters:
myid MPI myid.
numprocs Number of processes used.
mpe_events_p Pointer to timing structure.
Returns:
0 on success.


Generated on Sun May 20 13:10:04 2007 for s3asim by  doxygen 1.4.7