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
b3b459e8
Commit
b3b459e8
authored
Aug 17, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more updates to dragonfly-custom reverse handler, probable fix to max-time issue
parent
4b6b67e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+1
-1
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+7
-4
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
b3b459e8
...
...
@@ -840,7 +840,7 @@ void arrive_syn_tr(nw_state * s, tw_bf * bf, nw_message * m, tw_lp * lp)
}*/
}
m
->
rc
.
saved_send_time
=
s
->
send_time
;
if
(
tw_now
(
lp
)
-
m
->
fwd
.
sim_start_time
>
s
->
max_time
)
if
(
(
tw_now
(
lp
)
-
m
->
fwd
.
sim_start_time
)
>
s
->
max_time
)
s
->
max_time
=
tw_now
(
lp
)
-
m
->
fwd
.
sim_start_time
;
s
->
send_time
+=
(
tw_now
(
lp
)
-
m
->
fwd
.
sim_start_time
);
...
...
src/networks/model-net/dragonfly-custom.C
View file @
b3b459e8
...
...
@@ -1892,7 +1892,7 @@ static void packet_send_rc(terminal_state * s, tw_bf * bf, terminal_custom_messa
tw_lp
*
lp
)
{
int
num_qos_levels
=
s
->
params
->
num_qos_levels
;
int
vcg
=
0
;
int
vcg
=
msg
->
saved_vc
;
if
(
bf
->
c1
)
{
s
->
in_send_loop
=
1
;
...
...
@@ -1915,9 +1915,6 @@ static void packet_send_rc(terminal_state * s, tw_bf * bf, terminal_custom_messa
terminal_custom_message_list
*
cur_entry
=
(
terminal_custom_message_list
*
)
rc_stack_pop
(
s
->
st
);
if
(
num_qos_levels
>
1
)
vcg
=
get_vcg_from_category
(
msg
);
prepend_to_terminal_custom_message_list
(
s
->
terminal_msgs
,
s
->
terminal_msgs_tail
,
vcg
,
cur_entry
);
if
(
bf
->
c3
)
{
...
...
@@ -1968,6 +1965,7 @@ static void packet_send(terminal_state * s, tw_bf * bf, terminal_custom_message
return
;
}
msg
->
saved_vc
=
vcg
;
terminal_custom_message_list
*
cur_entry
=
s
->
terminal_msgs
[
vcg
];
int
data_size
=
s
->
params
->
chunk_size
;
uint64_t
num_chunks
=
cur_entry
->
msg
.
packet_size
/
s
->
params
->
chunk_size
;
...
...
@@ -3720,6 +3718,10 @@ static void router_packet_receive_rc(router_state * s,
int
output_port
=
msg
->
saved_vc
;
int
output_chan
=
msg
->
saved_channel
;
if
(
bf
->
c1
)
{
s
->
is_monitoring_bw
=
1
;
}
if
(
bf
->
c15
)
{
tw_rand_reverse_unif
(
lp
->
rng
);
...
...
@@ -3805,6 +3807,7 @@ router_packet_receive( router_state * s,
{
if
(
s
->
is_monitoring_bw
==
0
)
{
bf
->
c1
=
1
;
tw_stime
bw_ts
=
bw_reset_window
+
codes_local_latency
(
lp
);
terminal_custom_message
*
m
;
tw_event
*
e
=
model_net_method_event_new
(
lp
->
gid
,
bw_ts
,
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