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
127b92ae
Commit
127b92ae
authored
May 16, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing statistics display for minimal routes
parent
9f8640de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+4
-6
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
127b92ae
...
...
@@ -25,7 +25,7 @@
#include <cortex/topology.h>
#endif
#define DUMP_CONNECTIONS
0
#define DUMP_CONNECTIONS
1
#define CREDIT_SIZE 8
#define DFLY_HASH_TABLE_SIZE 4999
// debugging parameters
...
...
@@ -47,8 +47,6 @@ static int BIAS_MIN = 1;
static
int
DF_DALLY
=
0
;
static
int
adaptive_threshold
=
1024
;
static
long
num_nbr_packets
=
0
;
static
long
num_local_packets_sr
=
0
;
static
long
num_local_packets_sg
=
0
;
static
long
num_remote_packets
=
0
;
...
...
@@ -676,7 +674,7 @@ else
printf
(
"
\n
Number of global channels per router not specified, setting to 10 "
);
p
->
num_global_channels
=
10
;
}
p
->
radix
=
(
p
->
num_router_cols
*
p
->
num_row_chans
)
+
(
p
->
num_col_chans
*
p
->
num_router_rows
)
+
p
->
num_global_channels
+
p
->
num_cn
;
p
->
radix
=
p
->
intra_grp_radix
+
p
->
num_global_channels
+
p
->
num_cn
;
p
->
total_routers
=
p
->
num_groups
*
p
->
num_routers
;
p
->
total_terminals
=
p
->
total_routers
*
p
->
num_cn
;
...
...
@@ -2900,7 +2898,7 @@ router_packet_receive( router_state * s,
/* If destination router is in the same group then local adaptive routing is
* triggered */
if
(
s
->
router_id
==
dest_router_id
)
if
(
cur_chunk
->
msg
.
origin_
router_id
==
dest_router_id
)
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
if
(
dest_grp_id
==
src_grp_id
&&
...
...
@@ -3199,7 +3197,7 @@ router_packet_send( router_state * s,
if
(
to_terminal
)
{
// printf("\n next stop %d dest term id %d ", cur_entry->msg.next_stop, cur_entry->msg.dest_terminal_id);
if
(
cur_entry
->
msg
.
next_stop
!=
cur_entry
->
msg
.
dest_terminal_id
)
printf
(
"
\n
intra-group radix %d output port %d
"
,
s
->
params
->
intra_grp_radix
,
output_port
);
printf
(
"
\n
intra-group radix %d output port %d
next stop %d"
,
s
->
params
->
intra_grp_radix
,
output_port
,
cur_entry
->
msg
.
next_stop
);
assert
(
cur_entry
->
msg
.
next_stop
==
cur_entry
->
msg
.
dest_terminal_id
);
e
=
model_net_method_event_new
(
cur_entry
->
msg
.
next_stop
,
s
->
next_output_available_time
[
output_port
]
-
tw_now
(
lp
),
lp
,
...
...
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