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
fbe29658
Commit
fbe29658
authored
Jun 28, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusting vcs for non-minimal routes
parent
565f25c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+12
-3
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
fbe29658
...
@@ -44,6 +44,11 @@
...
@@ -44,6 +44,11 @@
#define LP_CONFIG_NM_ROUT (model_net_lp_config_names[DRAGONFLY_CUSTOM_ROUTER])
#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])
#define LP_METHOD_NM_ROUT (model_net_method_names[DRAGONFLY_CUSTOM_ROUTER])
static
int
max_lvc_src_g
=
1
;
static
int
max_lvc_intm_g
=
3
;
static
int
min_gvc_src_g
=
0
;
static
int
min_gvc_intm_g
=
1
;
static
int
BIAS_MIN
=
1
;
static
int
BIAS_MIN
=
1
;
static
int
DF_DALLY
=
0
;
static
int
DF_DALLY
=
0
;
static
int
adaptive_threshold
=
1024
;
static
int
adaptive_threshold
=
1024
;
...
@@ -2805,7 +2810,7 @@ static int do_global_adaptive_routing( router_state * s,
...
@@ -2805,7 +2810,7 @@ static int do_global_adaptive_routing( router_state * s,
}
}
/* if a direct global channel exists for non-minimal route in the source group then give a priority to that. */
/* if a direct global channel exists for non-minimal route in the source group then give a priority to that. */
if
(
msg
->
my_l_hop
==
1
)
if
(
msg
->
my_l_hop
==
max_lvc_src_g
)
{
{
assert
(
routing
==
PROG_ADAPTIVE
);
assert
(
routing
==
PROG_ADAPTIVE
);
nonmin_chan_a
=
find_chan
(
s
->
router_id
,
intm_grp_id_a
,
num_routers
);
nonmin_chan_a
=
find_chan
(
s
->
router_id
,
intm_grp_id_a
,
num_routers
);
...
@@ -3154,7 +3159,7 @@ router_packet_receive( router_state * s,
...
@@ -3154,7 +3159,7 @@ router_packet_receive( router_state * s,
* intermediate router ID which is in the same group. */
* intermediate router ID which is in the same group. */
if
(
src_grp_id
!=
dest_grp_id
)
if
(
src_grp_id
!=
dest_grp_id
)
{
{
if
(
routing
==
PROG_ADAPTIVE
&&
cur_chunk
->
msg
.
my_l_hop
>=
1
)
if
(
cur_chunk
->
msg
.
my_l_hop
==
max_lvc_src_g
)
{
{
bf
->
c3
=
1
;
bf
->
c3
=
1
;
vector
<
int
>
direct_rtrs
=
get_indirect_conns
(
s
,
lp
,
dest_grp_id
);
vector
<
int
>
direct_rtrs
=
get_indirect_conns
(
s
,
lp
,
dest_grp_id
);
...
@@ -3255,8 +3260,12 @@ router_packet_receive( router_state * s,
...
@@ -3255,8 +3260,12 @@ router_packet_receive( router_state * s,
}
}
}
}
if
(
cur_chunk
->
msg
.
path_type
==
NON_MINIMAL
&&
(
cur_chunk
->
msg
.
my_l_hop
==
1
||
cur_chunk
->
msg
.
my_l_hop
==
2
))
if
(
cur_chunk
->
msg
.
path_type
==
NON_MINIMAL
)
{
if
((
cur_chunk
->
msg
.
my_l_hop
==
max_lvc_src_g
&&
cur_chunk
->
msg
.
my_g_hop
==
min_gvc_src_g
)
||
(
cur_chunk
->
msg
.
my_l_hop
==
max_lvc_intm_g
&&
cur_chunk
->
msg
.
my_g_hop
==
min_gvc_intm_g
))
get_direct_con
=
1
;
get_direct_con
=
1
;
}
/* If the packet route has just changed to non-minimal with prog-adaptive
/* If the packet route has just changed to non-minimal with prog-adaptive
* routing, we have to compute the next stop based on that */
* routing, we have to compute the next stop based on that */
int
do_chan_selection
=
0
;
int
do_chan_selection
=
0
;
...
...
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