Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xin Wang
codes-dev
Commits
fdac5b35
Commit
fdac5b35
authored
Apr 08, 2016
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial work for adding slimfly model in model-net-test program, mapping details required
parent
0bb49c3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
2 deletions
+49
-2
tests/conf/modelnet-test-slimfly.conf
tests/conf/modelnet-test-slimfly.conf
+34
-0
tests/modelnet-test.c
tests/modelnet-test.c
+15
-2
No files found.
tests/conf/modelnet-test-slimfly.conf
0 → 100644
View file @
fdac5b35
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"
;
}
tests/modelnet-test.c
View file @
fdac5b35
...
...
@@ -42,6 +42,8 @@ static int lps_per_rep = 0;
typedef
struct
svr_msg
svr_msg
;
typedef
struct
svr_state
svr_state
;
char
router_name
[
MAX_NAME_LENGTH
];
/* types of events that will constitute triton requests */
enum
svr_event
{
...
...
@@ -174,10 +176,21 @@ int main(
num_servers
=
codes_mapping_get_lp_count
(
"MODELNET_GRP"
,
0
,
"server"
,
NULL
,
1
);
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
,
"modelnet_dragonfly_router"
,
NULL
,
1
);
router_name
,
NULL
,
1
);
offset
=
1
;
}
...
...
@@ -335,7 +348,7 @@ static void handle_kickoff_event(
num_servers_per_rep
=
codes_mapping_get_lp_count
(
"MODELNET_GRP"
,
1
,
"server"
,
NULL
,
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment