Commit 0cd09451 authored by Misbah Mubarak's avatar Misbah Mubarak

Added some simulation progress stats, updated dragonfly out of order packet arrival

parent bf9dbce4
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "codes/rc-stack.h" #include "codes/rc-stack.h"
#define TRACE -1 #define TRACE -1
#define TRACK 0
char workload_type[128]; char workload_type[128];
char workload_file[8192]; char workload_file[8192];
...@@ -95,7 +96,10 @@ struct nw_state ...@@ -95,7 +96,10 @@ struct nw_state
short wrkld_end; short wrkld_end;
struct rc_stack * st; struct rc_stack * st;
/* count of sends, receives, collectives and delays */
uint64_t num_completed;
/* count of sends, receives, collectives and delays */
unsigned long num_sends; unsigned long num_sends;
unsigned long num_recvs; unsigned long num_recvs;
unsigned long num_cols; unsigned long num_cols;
...@@ -1246,6 +1250,12 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l ...@@ -1246,6 +1250,12 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l
struct codes_workload_op * mpi_op = malloc(sizeof(struct codes_workload_op)); struct codes_workload_op * mpi_op = malloc(sizeof(struct codes_workload_op));
codes_workload_get_next(wrkld_id, 0, (int)s->nw_id, mpi_op); codes_workload_get_next(wrkld_id, 0, (int)s->nw_id, mpi_op);
s->num_completed++;
if(s->nw_id == TRACK && s->num_completed % 10000 == 0)
printf("\n Status: LP %ld completed %ld MPI operations ",
s->nw_id, s->num_completed);
m->u.rc.saved_op = mpi_op; m->u.rc.saved_op = mpi_op;
if(mpi_op->op_type == CODES_WK_END) if(mpi_op->op_type == CODES_WK_END)
{ {
......
This diff is collapsed.
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