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
a68fd5ec
Commit
a68fd5ec
authored
Mar 28, 2018
by
Neil McGlohon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix max vc size assignment
parent
1b9a6e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/networks/model-net/dragonfly-plus.C
src/networks/model-net/dragonfly-plus.C
+14
-3
No files found.
src/networks/model-net/dragonfly-plus.C
View file @
a68fd5ec
...
@@ -2279,7 +2279,7 @@ static int get_min_hops_to_dest_from_conn(router_state *s, tw_bf *bf, terminal_p
...
@@ -2279,7 +2279,7 @@ static int get_min_hops_to_dest_from_conn(router_state *s, tw_bf *bf, terminal_p
}
}
}
}
else
{
//next is not in final destination group
else
{
//next is not in final destination group
if
(
next_hops_type
==
SPINE
)
if
(
next_hops_type
==
SPINE
)
return
3
;
//Next Spine -> Spine -> Leaf -> dest_term
return
3
;
//Next Spine -> Spine -> Leaf -> dest_term
else
{
else
{
assert
(
next_hops_type
==
LEAF
);
assert
(
next_hops_type
==
LEAF
);
...
@@ -2595,8 +2595,6 @@ static void router_packet_receive(router_state *s, tw_bf *bf, terminal_plus_mess
...
@@ -2595,8 +2595,6 @@ static void router_packet_receive(router_state *s, tw_bf *bf, terminal_plus_mess
cur_chunk
->
msg
.
vc_index
=
output_port
;
cur_chunk
->
msg
.
vc_index
=
output_port
;
cur_chunk
->
msg
.
next_stop
=
next_stop
;
cur_chunk
->
msg
.
next_stop
=
next_stop
;
int
max_vc_size
=
s
->
params
->
cn_vc_size
;
output_chan
=
0
;
output_chan
=
0
;
if
(
cur_chunk
->
msg
.
path_type
==
MINIMAL
)
if
(
cur_chunk
->
msg
.
path_type
==
MINIMAL
)
...
@@ -2608,6 +2606,19 @@ static void router_packet_receive(router_state *s, tw_bf *bf, terminal_plus_mess
...
@@ -2608,6 +2606,19 @@ static void router_packet_receive(router_state *s, tw_bf *bf, terminal_plus_mess
output_chan
=
1
;
output_chan
=
1
;
}
}
ConnectionType
port_type
=
s
->
connMan
.
get_port_type
(
output_port
);
int
max_vc_size
=
0
;
if
(
port_type
==
CONN_GLOBAL
)
{
max_vc_size
=
s
->
params
->
global_vc_size
;
}
else
if
(
port_type
==
CONN_LOCAL
)
{
max_vc_size
=
s
->
params
->
local_vc_size
;
}
else
{
assert
(
port_type
==
CONN_TERMINAL
)
max_vc_size
=
s
->
param
->
cn_vc_size
;
}
cur_chunk
->
msg
.
output_chan
=
output_chan
;
cur_chunk
->
msg
.
output_chan
=
output_chan
;
cur_chunk
->
msg
.
my_N_hop
++
;
cur_chunk
->
msg
.
my_N_hop
++
;
...
...
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