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
20232c94
Commit
20232c94
authored
May 15, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabling local adaptive routes for 1-D dragonfly
parent
cad07e36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+15
-4
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
20232c94
...
...
@@ -47,6 +47,8 @@ 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
;
...
...
@@ -1242,8 +1244,9 @@ static void packet_generate(terminal_state * s, tw_bf * bf, terminal_custom_mess
num_local_packets_sg
++
;
}
else
{
num_remote_packets
++
;
}
nic_ts
=
g_tw_lookahead
+
(
num_chunks
*
cn_delay
)
+
tw_rand_unif
(
lp
->
rng
);
msg
->
packet_ID
=
s
->
packet_counter
;
...
...
@@ -2906,9 +2909,17 @@ router_packet_receive( router_state * s,
&&
cur_chunk
->
msg
.
last_hop
==
TERMINAL
)
{
//bf->c6 = 1;
//do_local_adaptive_routing(s, lp, &(cur_chunk->msg), bf, dest_router_id, intm_router_id);
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
if
(
DF_DALLY
==
0
)
{
bf
->
c6
=
1
;
do_local_adaptive_routing
(
s
,
lp
,
&
(
cur_chunk
->
msg
),
bf
,
dest_router_id
,
intm_router_id
);
}
else
if
(
DF_DALLY
==
1
)
{
cur_chunk
->
msg
.
path_type
=
MINIMAL
;
}
else
tw_error
(
TW_LOC
,
"
\n
topology type not set correctly! "
);
}
next_path_type
=
cur_chunk
->
msg
.
path_type
;
...
...
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