ROSS
ross-gvt.h
Go to the documentation of this file.
1 #ifndef INC_ross_gvt_h
2 #define INC_ross_gvt_h
3 
4 /*
5  * Initialize the GVT library and parse options.
6  */
7 
8 /* setup the GVT library (config cmd line args, etc) */
9 extern const tw_optdef *tw_gvt_setup(void);
10 
11 /* start the GVT library (init vars, etc) */
12 extern void tw_gvt_start(void);
13 
14 /*
15  * GVT computation is broken into two stages:
16  * stage 1: determine if GVT computation should be started
17  * stage 2: compute GVT
18  */
19 extern void tw_gvt_step1(tw_pe *);
20 extern void tw_gvt_step1_realtime(tw_pe *);
21 extern void tw_gvt_step2(tw_pe *);
22 
23 /*
24  * Provide a mechanism to force a GVT computation outside of the
25  * GVT interval (optional)
26  */
27 extern void tw_gvt_force_update(void);
28 extern void tw_gvt_force_update_realtime(void);
29 
30 /* Set the PE GVT value */
31 extern int tw_gvt_set(tw_pe * pe, tw_stime LVT);
32 
33 /* Returns true if GVT in progress, false otherwise */
34 static inline int tw_gvt_inprogress(tw_pe * pe);
35 
36 /* Statistics collection and printing function */
37 extern void tw_gvt_stats(FILE * F);
38 #endif
void tw_gvt_stats(FILE *F)
Definition: mpi_allreduce.c:53
int tw_gvt_set(tw_pe *pe, tw_stime LVT)
double tw_stime
Definition: ross.h:150
void tw_gvt_step1(tw_pe *)
Definition: mpi_allreduce.c:69
static int tw_gvt_inprogress(tw_pe *pe)
Holds the entire PE state.
Definition: ross-types.h:375
void tw_gvt_start(void)
Definition: mpi_allreduce.c:34
const tw_optdef * tw_gvt_setup(void)
Definition: mpi_allreduce.c:26
void tw_gvt_step2(tw_pe *)
tw_pe * pe
Definition: avl_tree.c:11
void tw_gvt_step1_realtime(tw_pe *)
Definition: mpi_allreduce.c:79
void tw_gvt_force_update(void)
Definition: mpi_allreduce.c:39
void tw_gvt_force_update_realtime(void)
Definition: mpi_allreduce.c:46