GitLab maintenance scheduled for Tomorrow, 2020-03-31, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit f86fa5a2 authored by Xin Wang's avatar Xin Wang

enable alltoall overhead

parent 333037be
......@@ -2182,17 +2182,25 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
}
break;
case CODES_WK_ALLREDUCE:
case CODES_WK_BCAST:
case CODES_WK_ALLGATHER:
case CODES_WK_ALLGATHERV:
case CODES_WK_ALLTOALL:
case CODES_WK_ALLTOALLV:
case CODES_WK_REDUCE:
{
if(bf->c1)
{
if(debug_cols) {
s->num_msg_sizes = m->rc.saved_num_msg_sizes;
if(s->num_msg_sizes > 0){
s->col_latency[s->num_msg_sizes-1] = m->rc.saved_col_time;
s->col_msizes[s->num_msg_sizes-1] = m->rc.saved_col_size;
}
s->num_all_reduce--;
s->col_time = m->rc.saved_send_time;
s->all_reduce_time = m->rc.saved_delay;
}
s->col_time = m->rc.saved_send_time;
if(enable_col_overhead)
s->is_collective = 1;
}
......@@ -2204,12 +2212,6 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
codes_issue_next_event_rc(lp);
}
break;
case CODES_WK_BCAST:
case CODES_WK_ALLGATHER:
case CODES_WK_ALLGATHERV:
case CODES_WK_ALLTOALL:
case CODES_WK_ALLTOALLV:
case CODES_WK_REDUCE:
case CODES_WK_COL:
{
s->num_cols--;
......@@ -2332,11 +2334,18 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l
}
break;
case CODES_WK_ALLREDUCE:
case CODES_WK_REDUCE:
case CODES_WK_BCAST:
case CODES_WK_ALLGATHER:
case CODES_WK_ALLGATHERV:
case CODES_WK_ALLTOALL:
case CODES_WK_ALLTOALLV:
{
s->num_cols++;
if(s->col_time > 0)
{
bf->c1 = 1;
if(debug_cols) {
m->rc.saved_delay = s->all_reduce_time;
m->rc.saved_num_msg_sizes = s->num_msg_sizes;
if (s->num_msg_sizes>0){
......@@ -2354,10 +2363,11 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l
s->col_latency[s->num_msg_sizes-1] += (tw_now(lp) - s->col_time);
s->col_msizes[s->num_msg_sizes-1] = mpi_op.u.collective.num_bytes;
s->all_reduce_time += (tw_now(lp) - s->col_time);
s->num_all_reduce++;
}
s->is_collective = 0;
m->rc.saved_send_time = s->col_time;
s->col_time = 0;
s->is_collective = 0;
s->num_all_reduce++;
}
else
{
......@@ -2368,13 +2378,6 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l
codes_issue_next_event(lp);
}
break;
case CODES_WK_REDUCE:
case CODES_WK_BCAST:
case CODES_WK_ALLGATHER:
case CODES_WK_ALLGATHERV:
case CODES_WK_ALLTOALL:
case CODES_WK_ALLTOALLV:
case CODES_WK_COL:
{
s->num_cols++;
......
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