Commit 4f033d4b authored by Misbah Mubarak's avatar Misbah Mubarak

Torus model revision: adding bubble flow control for deadlock prevention and...

Torus model revision: adding bubble flow control for deadlock prevention and updated congestion control
parent 4eb32b44
...@@ -37,6 +37,7 @@ struct nodes_message ...@@ -37,6 +37,7 @@ struct nodes_message
/* for saving recv and total times*/ /* for saving recv and total times*/
tw_stime saved_recv_time; tw_stime saved_recv_time;
tw_stime saved_total_time; tw_stime saved_total_time;
tw_stime saved_busy_time;
/* packet ID */ /* packet ID */
unsigned long long packet_ID; unsigned long long packet_ID;
......
...@@ -18,12 +18,12 @@ PARAMS ...@@ -18,12 +18,12 @@ PARAMS
# modelnet_scheduler="round-robin"; # modelnet_scheduler="round-robin";
num_vcs="1"; num_vcs="1";
num_routers="4"; num_routers="4";
local_vc_size="8192"; local_vc_size="16384";
global_vc_size="16384"; global_vc_size="32768";
cn_vc_size="8192"; cn_vc_size="16384";
local_bandwidth="5.25"; local_bandwidth="5.25";
global_bandwidth="4.7"; global_bandwidth="4.7";
cn_bandwidth="5.25"; cn_bandwidth="5.25";
message_size="552"; message_size="552";
routing="adaptive"; routing="minimal";
} }
...@@ -19,7 +19,7 @@ PARAMS ...@@ -19,7 +19,7 @@ PARAMS
n_dims="3"; n_dims="3";
dim_length="4,4,2"; dim_length="4,4,2";
link_bandwidth="10.0"; link_bandwidth="10.0";
buffer_size="1310720"; buffer_size="8192";
num_vc="1"; num_vc="1";
chunk_size="64"; chunk_size="512";
} }
...@@ -340,11 +340,6 @@ static int dragonfly_get_msg_sz(void) ...@@ -340,11 +340,6 @@ static int dragonfly_get_msg_sz(void)
return sizeof(terminal_message); return sizeof(terminal_message);
} }
static void free_nothing(void* ptr)
{
/* Do nothing */
}
static void free_tmp(void * ptr) static void free_tmp(void * ptr)
{ {
struct dfly_qhash_entry * dfly = ptr; struct dfly_qhash_entry * dfly = ptr;
...@@ -1436,7 +1431,9 @@ void packet_arrive(terminal_state * s, tw_bf * bf, terminal_message * msg, ...@@ -1436,7 +1431,9 @@ void packet_arrive(terminal_state * s, tw_bf * bf, terminal_message * msg,
msg->saved_avg_time = s->total_time; msg->saved_avg_time = s->total_time;
s->total_time += (tw_now(lp) - msg->travel_start_time); s->total_time += (tw_now(lp) - msg->travel_start_time);
if(s->terminal_id == TRACK)
printf("\n Updating travel time %lf ", s->total_time);
msg->saved_total_time = dragonfly_total_time; msg->saved_total_time = dragonfly_total_time;
dragonfly_total_time += tw_now( lp ) - msg->travel_start_time; dragonfly_total_time += tw_now( lp ) - msg->travel_start_time;
total_hops += msg->my_N_hop; total_hops += msg->my_N_hop;
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ LPGROUPS ...@@ -2,7 +2,7 @@ LPGROUPS
{ {
MODELNET_GRP MODELNET_GRP
{ {
repetitions="32"; repetitions="16";
server="1"; server="1";
modelnet_torus="1"; modelnet_torus="1";
} }
...@@ -15,10 +15,10 @@ PARAMS ...@@ -15,10 +15,10 @@ PARAMS
modelnet_scheduler="fcfs"; modelnet_scheduler="fcfs";
# modelnet_scheduler="round-robin"; # modelnet_scheduler="round-robin";
message_size="360"; message_size="360";
n_dims="4"; n_dims="3";
dim_length="4,2,2,2"; dim_length="4,2,2";
link_bandwidth="2.0"; link_bandwidth="2.0";
buffer_size="4096"; buffer_size="4096";
num_vc="1"; num_vc="1";
chunk_size="32"; chunk_size="512";
} }
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