Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xin Wang
codes-dev
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
src/networks/model-net/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
if
(
bf
->
c3
)
{
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
)
{
//assert(!hash_link);
...
...
@@ -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
;
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
* callee*/
//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