Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
20232c94
Commit
20232c94
authored
May 15, 2018
by
Misbah Mubarak
Browse files
disabling local adaptive routes for 1-D dragonfly
parent
cad07e36
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly-custom.C
View file @
20232c94
...
@@ -47,6 +47,8 @@ static int BIAS_MIN = 1;
...
@@ -47,6 +47,8 @@ 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
;
static
long
num_nbr_packets
=
0
;
static
long
num_local_packets_sr
=
0
;
static
long
num_local_packets_sr
=
0
;
static
long
num_local_packets_sg
=
0
;
static
long
num_local_packets_sg
=
0
;
static
long
num_remote_packets
=
0
;
static
long
num_remote_packets
=
0
;
...
@@ -1242,8 +1244,9 @@ static void packet_generate(terminal_state * s, tw_bf * bf, terminal_custom_mess
...
@@ -1242,8 +1244,9 @@ static void packet_generate(terminal_state * s, tw_bf * bf, terminal_custom_mess
num_local_packets_sg
++
;
num_local_packets_sg
++
;
}
}
else
else
{
num_remote_packets
++
;
num_remote_packets
++
;
}
nic_ts
=
g_tw_lookahead
+
(
num_chunks
*
cn_delay
)
+
tw_rand_unif
(
lp
->
rng
);
nic_ts
=
g_tw_lookahead
+
(
num_chunks
*
cn_delay
)
+
tw_rand_unif
(
lp
->
rng
);
msg
->
packet_ID
=
s
->
packet_counter
;
msg
->
packet_ID
=
s
->
packet_counter
;
...
@@ -2906,10 +2909,18 @@ router_packet_receive( router_state * s,
...
@@ -2906,10 +2909,18 @@ router_packet_receive( router_state * s,
&&
cur_chunk
->
msg
.
last_hop
==
TERMINAL
)
&&
cur_chunk
->
msg
.
last_hop
==
TERMINAL
)
{
{
//bf->c6 = 1;
if
(
DF_DALLY
==
0
)
//do_local_adaptive_routing(s, lp, &(cur_chunk->msg), bf, dest_router_id, intm_router_id);
{
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
;
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
;
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