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
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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
...
@@ -651,7 +651,7 @@ static int match_receive(nw_state* s, tw_lp* lp, tw_lpid lpid, struct codes_work
{
{
if
(
lp
->
gid
==
TRACE
)
if
(
lp
->
gid
==
TRACE
)
printf
(
"
\n
op1 rank %d bytes %d "
,
op1
->
u
.
recv
.
source_rank
,
op1
->
u
.
recv
.
num_bytes
);
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
);
mpi_completed_queue_insert_op
(
&
s
->
completed_reqs
,
op1
->
u
.
recv
.
req_id
);
return
1
;
return
1
;
}
}
...
@@ -974,8 +974,7 @@ static void update_send_completion_queue(nw_state* s, tw_bf * bf, nw_message * m
...
@@ -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 */
/* 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
)
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
->
send_time
=
m
->
u
.
rc
.
saved_send_time
;
s
->
recv_time
=
m
->
u
.
rc
.
saved_recv_time
;
s
->
recv_time
=
m
->
u
.
rc
.
saved_recv_time
;
if
(
m
->
u
.
rc
.
found_match
>=
0
)
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
...
@@ -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 */
/* Now reconstruct the mpi op */
struct
codes_workload_op
*
arrived_op
=
(
struct
codes_workload_op
*
)
malloc
(
sizeof
(
struct
codes_workload_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
->
op_type
=
m
->
u
.
msg_info
.
op_type
;
arrived_op
->
u
.
send
.
source_rank
=
m
->
u
.
msg_info
.
src_rank
;
arrived_op
->
u
.
send
.
source_rank
=
m
->
u
.
msg_info
.
src_rank
;
arrived_op
->
u
.
send
.
dest_rank
=
m
->
u
.
msg_info
.
dest_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