Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
9cc64008
Commit
9cc64008
authored
Jul 31, 2015
by
Jonathan Jenkins
Browse files
fix recv_time calculation (hopefully)
parent
54570e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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