Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
b1dd40b6
Commit
b1dd40b6
authored
Apr 25, 2018
by
Misbah Mubarak
Browse files
fix for adaptive threshold to check minimal port count
parent
62383d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly-custom.C
View file @
b1dd40b6
...
...
@@ -2522,7 +2522,7 @@ static void do_local_adaptive_routing(router_state * s,
msg
->
path_type
=
MINIMAL
;
// if(nonmin_port_count * num_intra_nonmin_hops > min_port_count * num_intra_min_hops)
if
(
non
min_port_count
>
adaptive_threshold
&&
min_port_count
>
nonmin_port_count
)
if
(
min_port_count
>
adaptive_threshold
&&
min_port_count
>
nonmin_port_count
)
{
msg
->
path_type
=
NON_MINIMAL
;
}
...
...
@@ -2725,7 +2725,7 @@ static int do_global_adaptive_routing( router_state * s,
next_nonmin_count
=
next_nonmin_count
*
2
;
}
/* Now compare the least congested minimal and non-minimal routes */
if
(
next_
non
min_count
>
adaptive_threshold
&&
next_min_count
>
next_nonmin_count
)
if
(
next_min_count
>
adaptive_threshold
&&
next_min_count
>
next_nonmin_count
)
{
next_chan
=
next_nonmin_stop
;
msg
->
path_type
=
NON_MINIMAL
;
...
...
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