Commit a4de4a7b authored by Misbah Mubarak's avatar Misbah Mubarak

Adding meta files for dragonfly model

parent b9138d68
......@@ -55,6 +55,8 @@ struct terminal_message
unsigned int intm_lp_id;
short new_vc;
short saved_vc;
int saved_src_dest;
/* last hop of the message, can be a terminal, local router or global router */
int last_hop;
/* For routing */
......
......@@ -53,6 +53,12 @@ working from the CODES master branches, use the ROSS master branch.
breaks libdumpi's function wrappers through const'ifying the MPI
interface).
For building DUMPI with mpich3 versions and higher, use the following build
options:
CFLAGS="-DMPICH_SUPPRESS_PROTOTYPES=1 -DHAVE_PRAGMA_HP_SEC_DEF=1"
./configure --enable-libdumpi --prefix=$INSTALL_PATH
Use the --with-darshan argument to configure to enable the optional
Darshan I/O workload generator
(http://www.mcs.anl.gov/research/projects/darshan/). In order to use
......
......@@ -179,16 +179,13 @@ bin_PROGRAMS += src/network-workloads/model-net-dumpi-traces-dump
bin_PROGRAMS += src/network-workloads/model-net-synthetic
bin_PROGRAMS += src/network-workloads/model-net-synthetic-slimfly
src_workload_codes_workload_dump_SOURCES = \
src/workload/codes-workload-dump.c
src_network_workloads_model_net_mpi_replay_SOURCES = src/network-workloads/model-net-mpi-replay.c
src_network_workloads_model_net_synthetic_SOURCES = src/network-workloads/model-net-synthetic.c
src_network_workloads_model_net_synthetic_slimfly_SOURCES = src/network-workloads/model-net-synthetic-slimfly.c
src_network_workloads_model_net_dumpi_traces_dump_SOURCES = src/network-workloads/model-net-dumpi-traces-dump.c
#bin_PROGRAMS += src/network-workload/codes-nw-test
#src_network_workload_codes_nw_test_SOURCES = \
......
......@@ -2044,7 +2044,7 @@ void dragonfly_rsample_fin(router_state * s,
(void)lp;
const dragonfly_param * p = s->params;
if(!g_tw_mynode)
if(s->router_id == 0)
{
/* write metadata file */
......@@ -2329,8 +2329,18 @@ dragonfly_terminal_final( terminal_state * s,
{
model_net_print_stats(lp->gid, s->dragonfly_stats_array);
//rc_stack_gc(lp, s->st);
if(s->terminal_id == 0)
{
/* write metadata file */
char meta_fname[64];
sprintf(meta_fname, "dragonfly-msg-stats.meta");
FILE * fp = fopen(meta_fname, "w");
fprintf(fp, "# Format <LP id> <Terminal ID> <Total Data Size> <Avg packet latency> <# Flits/Packets finished> <Avg hops> <Busy Time>");
fclose(fp);
}
int written = 0;
if(!s->terminal_id)
written = sprintf(s->output_buf, "# Format <LP id> <Terminal ID> <Total Data Size> <Avg packet latency> <# Flits/Packets finished> <Avg hops> <Busy Time>");
......@@ -2379,11 +2389,17 @@ void dragonfly_router_final(router_state * s,
const dragonfly_param *p = s->params;
int written = 0;
if(!s->router_id)
if(s->router_id == 0)
{
written = sprintf(s->output_buf, "# Format <LP ID> <Group ID> <Router ID> <Busy time per router port(s)>");
written += sprintf(s->output_buf + written, "# Router ports in the order: %d local channels, %d global channels",
/* write metadata file */
char meta_fname[64];
sprintf(meta_fname, "dragonfly-msg-stats.meta");
FILE * fp = fopen(meta_fname, "w");
fprintf(fp, "# Format <LP ID> <Group ID> <Router ID> <Busy time per router port(s)>");
fprintf(fp, "# Router ports in the order: %d local channels, %d global channels",
p->num_routers, p->num_global_channels);
fclose(fp);
}
written += sprintf(s->output_buf + written, "\n %llu %d %d",
LLU(lp->gid),
......
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