Commit 2da80e0e authored by Misbah Mubarak's avatar Misbah Mubarak Committed by Neil McGlohon
Browse files

setting vcs to avoid packet deadlock bug

parent 66290294
...@@ -3451,14 +3451,15 @@ if(cur_chunk->msg.path_type == NON_MINIMAL) ...@@ -3451,14 +3451,15 @@ if(cur_chunk->msg.path_type == NON_MINIMAL)
output_chan = 0; output_chan = 0;
if(output_port < s->params->intra_grp_radix) { if(output_port < s->params->intra_grp_radix) {
output_chan = msg->my_l_hop; output_chan = msg->my_l_hop;
// if(DF_DALLY == 1) if(DF_DALLY == 1)
// { {
// if(cur_chunk->msg.my_g_hop == 1 && cur_chunk->msg.last_hop == GLOBAL) { if(cur_chunk->msg.my_g_hop == 1 && cur_chunk->msg.last_hop == GLOBAL)
// output_chan = 1; output_chan = 1;
// } else if (cur_chunk->msg.my_g_hop == 2) { else if(cur_chunk->msg.my_g_hop == 1 && cur_chunk->msg.last_hop == LOCAL)
// output_chan = 3; output_chan = 2;
// } else if (cur_chunk->msg.my_g_hop == 2)
// } output_chan = 3;
}
//else { //else {
/* TODO: Recheck VC count after things are in order for a 2-D dragonfly. */ /* TODO: Recheck VC count after things are in order for a 2-D dragonfly. */
// if(cur_chunk->msg.my_g_hop == 1 && cur_chunk->msg.last_hop == GLOBAL) { // if(cur_chunk->msg.my_g_hop == 1 && cur_chunk->msg.last_hop == GLOBAL) {
...@@ -3468,6 +3469,7 @@ if(cur_chunk->msg.path_type == NON_MINIMAL) ...@@ -3468,6 +3469,7 @@ if(cur_chunk->msg.path_type == NON_MINIMAL)
// output_chan = 6; // output_chan = 6;
//} //}
//} //}
assert(output_chan < s->params->num_vcs);
max_vc_size = s->params->local_vc_size; max_vc_size = s->params->local_vc_size;
cur_chunk->msg.my_l_hop++; cur_chunk->msg.my_l_hop++;
} else if(output_port < (s->params->intra_grp_radix + } else if(output_port < (s->params->intra_grp_radix +
......
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