ROSS
phold-gvt-hook.main.c File Reference
#include "phold.h"

Go to the source code of this file.

Functions

tw_peid phold_map (tw_lpid gid)
void phold_init (phold_state *s, tw_lp *lp)
void phold_pre_run (phold_state *s, tw_lp *lp)
void phold_event_handler (phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
void phold_event_handler_rc (phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
void phold_commit (phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
void phold_finish (phold_state *s, tw_lp *lp)
void gvt_hook (tw_pe *pe, bool past_end_time)
int main (int argc, char **argv)

Variables

tw_lptype mylps []
const tw_optdef app_opt []

Function Documentation

◆ gvt_hook()

void gvt_hook ( tw_pe * pe,
bool past_end_time )

Definition at line 111 of file phold-gvt-hook.main.c.

References g_tw_mynode, pe, tw_event_sig::recv_ts, and tw_trigger_gvt_hook_at().

Referenced by main().

◆ main()

◆ phold_commit()

void phold_commit ( phold_state * s,
tw_bf * bf,
phold_message * m,
tw_lp * lp )

Definition at line 90 of file phold-gvt-hook.main.c.

◆ phold_event_handler()

◆ phold_event_handler_rc()

void phold_event_handler_rc ( phold_state * s,
tw_bf * bf,
phold_message * m,
tw_lp * lp )

◆ phold_finish()

void phold_finish ( phold_state * s,
tw_lp * lp )

Definition at line 97 of file phold-gvt-hook.main.c.

◆ phold_init()

◆ phold_map()

tw_peid phold_map ( tw_lpid gid)

Definition at line 3 of file phold-gvt-hook.main.c.

References g_tw_nlp.

◆ phold_pre_run()

Variable Documentation

◆ app_opt

const tw_optdef app_opt[]
Initial value:
= {
TWOPT_GROUP("PHOLD Model"),
TWOPT_DOUBLE("remote", percent_remote, "desired remote event rate"),
TWOPT_UINT("nlp", nlp_per_pe, "number of LPs per processor"),
TWOPT_DOUBLE("mean", mean, "exponential distribution mean for timestamps"),
TWOPT_DOUBLE("mult", mult, "multiplier for event memory allocation"),
TWOPT_DOUBLE("lookahead", lookahead, "lookahead for events"),
"number of initial messages per LP"),
TWOPT_UINT("stagger", stagger,
"Set to 1 to stagger event uniformly across 0 to end time."),
TWOPT_UINT("memory", optimistic_memory, "additional memory buffers"),
TWOPT_CHAR("run", run_id, "user supplied run name"),
#define TWOPT_UINT(n, v, h)
Definition tw-opts.h:33
#define TWOPT_GROUP(h)
Definition tw-opts.h:30
#define TWOPT_END()
Definition tw-opts.h:39
#define TWOPT_CHAR(n, v, h)
Definition tw-opts.h:36
#define TWOPT_DOUBLE(n, v, h)
Definition tw-opts.h:35
static tw_stime percent_remote
Definition phold.h:30
static int optimistic_memory
Definition phold.h:34
static tw_stime mult
Definition phold.h:29
static unsigned int stagger
Definition phold.h:27
static char run_id[1024]
Definition phold.h:39
static unsigned int nlp_per_pe
Definition phold.h:32
static int g_phold_start_events
Definition phold.h:33
tw_stime lookahead
Definition phold.h:26
static tw_stime mean
Definition phold.h:37

Definition at line 131 of file phold-gvt-hook.main.c.

Referenced by main().

◆ mylps

tw_lptype mylps[]
Initial value:
= {
{0},
}
void(* final_f)(void *sv, tw_lp *me)
Definition ross-types.h:90
void(* init_f)(void *sv, tw_lp *me)
Definition ross-types.h:82
void(* event_f)(void *sv, tw_bf *cv, void *msg, tw_lp *me)
Definition ross-types.h:87
void(* revent_f)(void *sv, tw_bf *cv, void *msg, tw_lp *me)
Definition ross-types.h:88
tw_peid(* map_f)(tw_lpid)
Definition ross-types.h:83
void(* commit_f)(void *sv, tw_bf *cv, void *msg, tw_lp *me)
Definition ross-types.h:89
void(* pre_run_f)(void *sv, tw_lp *me)
Definition ross-types.h:86
void phold_finish(phold_state *s, tw_lp *lp)
void phold_commit(phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
void phold_init(phold_state *s, tw_lp *lp)
void phold_event_handler(phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
void phold_event_handler_rc(phold_state *s, tw_bf *bf, phold_message *m, tw_lp *lp)
tw_peid phold_map(tw_lpid gid)

Definition at line 102 of file phold-gvt-hook.main.c.

Referenced by main().