Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
2d4e7765
Commit
2d4e7765
authored
Apr 21, 2017
by
mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing maximum latency per node
parent
dc083f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+10
-2
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
2d4e7765
...
@@ -1442,9 +1442,12 @@ static void packet_arrive_rc(terminal_state * s, tw_bf * bf, terminal_custom_mes
...
@@ -1442,9 +1442,12 @@ static void packet_arrive_rc(terminal_state * s, tw_bf * bf, terminal_custom_mes
if
(
bf
->
c3
)
if
(
bf
->
c3
)
{
{
dragonfly_max_latency
=
msg
->
saved_available_time
;
dragonfly_max_latency
=
msg
->
saved_available_time
;
s
->
max_latency
=
msg
->
saved_available_time
;
}
}
if
(
bf
->
c22
)
{
s
->
max_latency
=
msg
->
saved_available_time
;
}
if
(
bf
->
c7
)
if
(
bf
->
c7
)
{
{
//assert(!hash_link);
//assert(!hash_link);
...
@@ -1688,6 +1691,11 @@ static void packet_arrive(terminal_state * s, tw_bf * bf, terminal_custom_messag
...
@@ -1688,6 +1691,11 @@ static void packet_arrive(terminal_state * s, tw_bf * bf, terminal_custom_messag
dragonfly_max_latency
=
tw_now
(
lp
)
-
msg
->
travel_start_time
;
dragonfly_max_latency
=
tw_now
(
lp
)
-
msg
->
travel_start_time
;
s
->
max_latency
=
tw_now
(
lp
)
-
msg
->
travel_start_time
;
s
->
max_latency
=
tw_now
(
lp
)
-
msg
->
travel_start_time
;
}
}
if
(
s
->
max_latency
<
tw_now
(
lp
)
-
msg
->
travel_start_time
)
{
bf
->
c22
=
1
;
msg
->
saved_available_time
=
s
->
max_latency
;
s
->
max_latency
=
tw_now
(
lp
)
-
msg
->
travel_start_time
;
}
/* If all chunks of a message have arrived then send a remote event to the
/* If all chunks of a message have arrived then send a remote event to the
* callee*/
* callee*/
//assert(tmp->num_chunks <= total_chunks);
//assert(tmp->num_chunks <= total_chunks);
...
...
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