Commit 34f4b541 authored by RAM's avatar RAM

dragonfly-link-stat file:

1.router_final_function()
[global connection offset was not correct] -> offset+intra-group_index
2.terminal_final_function()
changed source to router and dest to terminal because LLU(s->total_msg_size) is message received
parent b498917e
......@@ -3157,8 +3157,9 @@ dragonfly_dally_terminal_final( terminal_state * s,
written += sprintf(s->output_buf + written, "# Format <source_id> <source_type> <dest_id> < dest_type> <link_type> <link_traffic> <link_saturation> <stalled_chunks>");
// fprintf(fp, "# Format <LP id> <Terminal ID> <Total Data Size> <Avg packet latency> <# Flits/Packets finished> <Avg hops> <Busy Time> <Max packet Latency> <Min packet Latency >\n");
}
written += sprintf(s->output_buf + written, "\n%u %s %llu %s %s %llu %lf %d",
s->terminal_id, "T", s->router_id, "R", "CN", LLU(s->total_msg_size), s->busy_time, -1); //note that terminals don't have stalled chuncks because of model net scheduling only gives a terminal what it can handle (-1 to show N/A)
//since LLU(s->total_msg_size) is total message size a terminal received from a router so source is router and destination is terminal
written += sprintf(s->output_buf + written, "\n%llu %s %u %s %s %llu %lf %d",
s->router_id, "R",s->terminal_id, "T", "CN", LLU(s->total_msg_size), s->busy_time, -1); //note that terminals don't have stalled chuncks because of model net scheduling only gives a terminal what it can handle (-1 to show N/A)
lp_io_write(lp->gid, (char*)"dragonfly-link-stats", written, s->output_buf);
......@@ -3257,9 +3258,9 @@ void dragonfly_dally_router_final(router_state * s,
dest_rtr_id,
"R",
"G",
s->link_traffic[offset],
s->busy_time[offset],
s->stalled_chunks[offset]);
s->link_traffic[p->intra_grp_radix+offset],
s->busy_time[p->intra_grp_radix+offset],
s->stalled_chunks[p->intra_grp_radix+offset]);
}
}
......
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