Commit e5d4e04e authored by Matthieu Dorier's avatar Matthieu Dorier

modified model-net

parent a0521d0e
...@@ -1143,7 +1143,7 @@ void nw_test_init(nw_state* s, tw_lp* lp) ...@@ -1143,7 +1143,7 @@ void nw_test_init(nw_state* s, tw_lp* lp)
return; return;
} }
if (strcmp(workload_type, "dumpi") == 0 || strcmp(workload_type, "cortex") == 0){ if (strcmp(workload_type, "dumpi") == 0){
strcpy(params_d.file_name, file_name_of_job[lid.job]); strcpy(params_d.file_name, file_name_of_job[lid.job]);
params_d.num_net_traces = num_traces_of_job[lid.job]; params_d.num_net_traces = num_traces_of_job[lid.job];
params = (char*)&params_d; params = (char*)&params_d;
...@@ -1151,14 +1151,13 @@ void nw_test_init(nw_state* s, tw_lp* lp) ...@@ -1151,14 +1151,13 @@ void nw_test_init(nw_state* s, tw_lp* lp)
s->local_rank = lid.rank; s->local_rank = lid.rank;
// printf("network LP nw id %d app id %d local rank %d generating events, lp gid is %ld \n", s->nw_id, // printf("network LP nw id %d app id %d local rank %d generating events, lp gid is %ld \n", s->nw_id,
// s->app_id, s->local_rank, lp->gid); // s->app_id, s->local_rank, lp->gid);
}
#ifdef ENABLE_CORTEX #ifdef ENABLE_CORTEX
if (strcmp(workload_type, "cortex") == 0) { fprintf(stderr,"\n\n### Cortex Script is %s"
"\n### Cortex Class is %s\n\n",cortex_file,cortex_class);
strcpy(params_d.cortex_script, cortex_file); strcpy(params_d.cortex_script, cortex_file);
strcpy(params_d.cortex_class, cortex_class); strcpy(params_d.cortex_class, cortex_class);
}
#endif #endif
}
wrkld_id = codes_workload_load("dumpi-trace-workload", params, s->app_id, s->local_rank); wrkld_id = codes_workload_load("dumpi-trace-workload", params, s->app_id, s->local_rank);
......
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