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
9cc64008
Commit
9cc64008
authored
Jul 31, 2015
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix recv_time calculation (hopefully)
parent
54570e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/models/network-workloads/model-net-mpi-wrklds.c
src/models/network-workloads/model-net-mpi-wrklds.c
+3
-3
No files found.
src/models/network-workloads/model-net-mpi-wrklds.c
View file @
9cc64008
...
...
@@ -651,7 +651,7 @@ static int match_receive(nw_state* s, tw_lp* lp, tw_lpid lpid, struct codes_work
{
if
(
lp
->
gid
==
TRACE
)
printf
(
"
\n
op1 rank %d bytes %d "
,
op1
->
u
.
recv
.
source_rank
,
op1
->
u
.
recv
.
num_bytes
);
s
->
recv_time
+=
tw_now
(
lp
)
-
op
2
->
sim_start_time
;
s
->
recv_time
+=
tw_now
(
lp
)
-
op
1
->
sim_start_time
;
mpi_completed_queue_insert_op
(
&
s
->
completed_reqs
,
op1
->
u
.
recv
.
req_id
);
return
1
;
}
...
...
@@ -974,8 +974,7 @@ static void update_send_completion_queue(nw_state* s, tw_bf * bf, nw_message * m
/* reverse handler for updating arrival queue function */
static
void
update_arrival_queue_rc
(
nw_state
*
s
,
tw_bf
*
bf
,
nw_message
*
m
,
tw_lp
*
lp
)
{
s
->
send_time
=
m
->
u
.
rc
.
saved_send_time
;
s
->
recv_time
=
m
->
u
.
rc
.
saved_recv_time
;
s
->
send_time
=
m
->
u
.
rc
.
saved_send_time
;
s
->
recv_time
=
m
->
u
.
rc
.
saved_recv_time
;
if
(
m
->
u
.
rc
.
found_match
>=
0
)
{
...
...
@@ -1013,6 +1012,7 @@ static void update_arrival_queue(nw_state* s, tw_bf * bf, nw_message * m, tw_lp
/* Now reconstruct the mpi op */
struct
codes_workload_op
*
arrived_op
=
(
struct
codes_workload_op
*
)
malloc
(
sizeof
(
struct
codes_workload_op
));
arrived_op
->
sim_start_time
=
m
->
u
.
msg_info
.
sim_start_time
;
arrived_op
->
op_type
=
m
->
u
.
msg_info
.
op_type
;
arrived_op
->
u
.
send
.
source_rank
=
m
->
u
.
msg_info
.
src_rank
;
arrived_op
->
u
.
send
.
dest_rank
=
m
->
u
.
msg_info
.
dest_rank
;
...
...
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