Commit fdac5b35 authored by Misbah Mubarak's avatar Misbah Mubarak

Initial work for adding slimfly model in model-net-test program, mapping details required

parent 0bb49c3c
LPGROUPS
{
MODELNET_GRP
{
repetitions="50";
server="3";
modelnet_slimfly="3";
slimfly_router="1";
}
}
PARAMS
{
packet_size="512";
modelnet_order=( "slimfly");
# scheduler options
modelnet_scheduler="fcfs";
chunk_size="256";
# modelnet_scheduler="round-robin";
num_routers="5";
num_terminals="3";
global_channels="5";
local_channels="2";
generator_set_X=("1","4");
generator_set_X_prime=("2","3");
local_vc_size="25600";
global_vc_size="25600";
cn_vc_size="25600";
local_bandwidth="9.0";
global_bandwidth="9.0";
cn_bandwidth="9.0";
link_delay = "0";
message_size="368";
routing="minimal";
}
...@@ -42,6 +42,8 @@ static int lps_per_rep = 0; ...@@ -42,6 +42,8 @@ static int lps_per_rep = 0;
typedef struct svr_msg svr_msg; typedef struct svr_msg svr_msg;
typedef struct svr_state svr_state; typedef struct svr_state svr_state;
char router_name[MAX_NAME_LENGTH];
/* types of events that will constitute triton requests */ /* types of events that will constitute triton requests */
enum svr_event enum svr_event
{ {
...@@ -174,10 +176,21 @@ int main( ...@@ -174,10 +176,21 @@ int main(
num_servers = codes_mapping_get_lp_count("MODELNET_GRP", 0, "server", num_servers = codes_mapping_get_lp_count("MODELNET_GRP", 0, "server",
NULL, 1); NULL, 1);
if(net_id == DRAGONFLY) if(net_id == DRAGONFLY)
{
strcpy(router_name, "modelnet_dragonfly_router");
}
if(net_id == SLIMFLY)
{
strcpy(router_name, "modelnet_slimfly_router");
}
if(net_id == SLIMFLY || net_id == DRAGONFLY)
{ {
num_routers = codes_mapping_get_lp_count("MODELNET_GRP", 0, num_routers = codes_mapping_get_lp_count("MODELNET_GRP", 0,
"modelnet_dragonfly_router", NULL, 1); router_name, NULL, 1);
offset = 1; offset = 1;
} }
...@@ -335,7 +348,7 @@ static void handle_kickoff_event( ...@@ -335,7 +348,7 @@ static void handle_kickoff_event(
num_servers_per_rep = codes_mapping_get_lp_count("MODELNET_GRP", 1, num_servers_per_rep = codes_mapping_get_lp_count("MODELNET_GRP", 1,
"server", NULL, 1); "server", NULL, 1);
num_routers_per_rep = codes_mapping_get_lp_count("MODELNET_GRP", 1, num_routers_per_rep = codes_mapping_get_lp_count("MODELNET_GRP", 1,
"modelnet_dragonfly_router", NULL, 1); router_name, NULL, 1);
lps_per_rep = num_servers_per_rep * 2 + num_routers_per_rep; lps_per_rep = num_servers_per_rep * 2 + num_routers_per_rep;
......
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