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
ee21a886
Commit
ee21a886
authored
Apr 22, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding minimal bias, setting minimal paths as defaults
parent
0e10d774
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+9
-9
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
ee21a886
...
@@ -530,6 +530,9 @@ static void dragonfly_read_config(const char * anno, dragonfly_param *params){
...
@@ -530,6 +530,9 @@ static void dragonfly_read_config(const char * anno, dragonfly_param *params){
if
(
rc
)
{
if
(
rc
)
{
BIAS_MIN
=
0
;
BIAS_MIN
=
0
;
}
}
else
printf
(
"
\n
Setting minimal bias"
);
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"cn_vc_size"
,
anno
,
&
p
->
cn_vc_size
);
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"cn_vc_size"
,
anno
,
&
p
->
cn_vc_size
);
if
(
rc
)
{
if
(
rc
)
{
p
->
cn_vc_size
=
1024
;
p
->
cn_vc_size
=
1024
;
...
@@ -2514,14 +2517,11 @@ static void do_local_adaptive_routing(router_state * s,
...
@@ -2514,14 +2517,11 @@ 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(nonmin_port_count * num_intra_nonmin_hops > min_port_count * num_intra_min_hops)
if
(
nonmin_port_count
>
min_port_count
)
if
(
nonmin_port_count
<
min_port_count
)
{
{
msg
->
path_type
=
MINIMAL
;
}
else
{
// printf("\n Nonmin port count %ld min port count %ld ", nonmin_port_count, min_port_count);
msg
->
path_type
=
NON_MINIMAL
;
msg
->
path_type
=
NON_MINIMAL
;
}
}
}
}
...
@@ -2726,15 +2726,15 @@ static int do_global_adaptive_routing( router_state * s,
...
@@ -2726,15 +2726,15 @@ static int do_global_adaptive_routing( router_state * s,
}
}
}
}
/* Now compare the least congested minimal and non-minimal routes */
/* Now compare the least congested minimal and non-minimal routes */
if
(
next_
nonmin_count
>=
next_
min_count
)
if
(
next_
min_count
>
next_non
min_count
)
{
{
next_chan
=
next_min_stop
;
next_chan
=
next_min_stop
;
msg
->
path_type
=
MINIMAL
;
msg
->
path_type
=
NON_
MINIMAL
;
}
}
else
else
{
{
next_chan
=
next_nonmin_stop
;
next_chan
=
next_nonmin_stop
;
msg
->
path_type
=
NON_
MINIMAL
;
msg
->
path_type
=
MINIMAL
;
}
}
return
next_chan
;
return
next_chan
;
...
...
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