// printf("\n Dest rank %d local rank %d ", m->fwd.dest_rank, s->local_rank);
// printf("\n Dest rank %d local rank %d ", m->fwd.dest_rank, s->local_rank);
m->rc.saved_recv_time=s->recv_time;
m->rc.saved_recv_time=s->recv_time;
s->num_bytes_recvd+=m->fwd.num_bytes;
s->num_bytes_recvd+=m->fwd.num_bytes;
num_bytes_recvd+=m->fwd.num_bytes;
// send a callback to the sender to increment times
// send a callback to the sender to increment times
// find the global id of the source
// find the global id of the source
...
@@ -1270,7 +1269,7 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
...
@@ -1270,7 +1269,7 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
if(m->op_type==CODES_WK_ISEND)
if(m->op_type==CODES_WK_ISEND)
codes_issue_next_event_rc(lp);
codes_issue_next_event_rc(lp);
s->num_sends--;
s->num_sends--;
s->num_bytes_sent+=m->rc.saved_num_bytes;
s->num_bytes_sent-=m->rc.saved_num_bytes;
num_bytes_sent-=m->rc.saved_num_bytes;
num_bytes_sent-=m->rc.saved_num_bytes;
}
}
break;
break;
...
@@ -1703,7 +1702,9 @@ int main( int argc, char** argv )
...
@@ -1703,7 +1702,9 @@ int main( int argc, char** argv )
assert(num_net_traces);
assert(num_net_traces);
if(!g_tw_mynode)
if(!g_tw_mynode)
printf("\n Total bytes sent %llu recvd %llu \n max runtime %lf ns avg runtime %lf \n max comm time %lf avg comm time %lf \n max send time %lf avg send time %lf \n max recv time %lf avg recv time %lf \n max wait time %lf avg wait time %lf \n",total_bytes_sent,total_bytes_recvd,
printf("\n Total bytes sent %llu recvd %llu \n max runtime %lf ns avg runtime %lf \n max comm time %lf avg comm time %lf \n max send time %lf avg send time %lf \n max recv time %lf avg recv time %lf \n max wait time %lf avg wait time %lf \n",