Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
0e10d774
Commit
0e10d774
authored
Apr 20, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding optional bias towards minimal routing
parent
04cee123
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+21
-0
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
0e10d774
...
...
@@ -43,6 +43,7 @@
#define LP_CONFIG_NM_ROUT (model_net_lp_config_names[DRAGONFLY_CUSTOM_ROUTER])
#define LP_METHOD_NM_ROUT (model_net_method_names[DRAGONFLY_CUSTOM_ROUTER])
static
int
BIAS_MIN
=
0
;
static
int
DF_DALLY
=
0
;
using
namespace
std
;
...
...
@@ -524,6 +525,11 @@ static void dragonfly_read_config(const char * anno, dragonfly_param *params){
if
(
rc
)
{
DF_DALLY
=
0
;
}
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"minimal-bias"
,
anno
,
&
BIAS_MIN
);
if
(
rc
)
{
BIAS_MIN
=
0
;
}
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"cn_vc_size"
,
anno
,
&
p
->
cn_vc_size
);
if
(
rc
)
{
p
->
cn_vc_size
=
1024
;
...
...
@@ -2500,6 +2506,14 @@ static void do_local_adaptive_routing(router_state * s,
int
local_stop
=
-
1
;
tw_lpid
global_stop
;
if
(
BIAS_MIN
==
1
)
{
if
(
min_port_count
>
0
)
{
min_port_count
=
min_port_count
/
2
;
}
}
// if(nonmin_port_count * num_intra_nonmin_hops > min_port_count * num_intra_min_hops)
if
(
nonmin_port_count
>
min_port_count
)
{
...
...
@@ -2704,6 +2718,13 @@ static int do_global_adaptive_routing( router_state * s,
next_min_stop
=
min_chan_a
;
}
if
(
BIAS_MIN
==
1
)
{
if
(
next_min_count
>
0
)
{
next_min_count
=
next_min_count
/
2
;
}
}
/* Now compare the least congested minimal and non-minimal routes */
if
(
next_nonmin_count
>=
next_min_count
)
{
...
...
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