Commit d002c48e authored by Noah Wolfe's avatar Noah Wolfe

Slim Fly model now deterministic for synthetic workloads

 - net_events matches for synch=1,2,3 modes
 - fixed reverse event handler for kick_off_event()
parent 51f2f821
......@@ -256,8 +256,13 @@ static void handle_kickoff_rev_event(
svr_msg * m,
tw_lp * lp)
{
if(b->c1)
tw_rand_reverse_unif(lp->rng);
ns->msg_sent_count--;
model_net_event_rc(net_id, lp, PAYLOAD_SZ);
tw_rand_reverse_unif(lp->rng);
}
static void handle_kickoff_event(
svr_state * ns,
......@@ -284,6 +289,7 @@ static void handle_kickoff_event(
/* in case of uniform random traffic, send to a random destination. */
if(traffic == UNIFORM)
{
b->c1 = 1;
local_dest = tw_rand_integer(lp->rng, 0, num_nodes - 1);
// printf("\n LP %ld sending to %d ", lp->gid, local_dest);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment