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
569f17d5
Commit
569f17d5
authored
Jul 07, 2017
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding lp-io for collective statistics
parent
72c856b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+6
-1
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
569f17d5
...
...
@@ -262,6 +262,7 @@ struct nw_state
int
max_arr_size
;
struct
mpi_workload_sample
*
mpi_wkld_samples
;
char
output_buf
[
512
];
char
col_stats
[
64
];
};
/* data for handling reverse computation.
...
...
@@ -2209,8 +2210,12 @@ void nw_test_finalize(nw_state* s, tw_lp* lp)
if
(
s
->
recv_time
>
max_recv_time
)
max_recv_time
=
s
->
recv_time
;
written
=
0
;
if
(
debug_cols
)
printf
(
"
\n
Rank %lld avg all reduce time %lf "
,
s
->
nw_id
,
ns_to_s
(
s
->
all_reduce_time
/
s
->
num_all_reduce
));
written
+=
sprintf
(
s
->
col_stats
+
written
,
"%lld
\t
%lf
\n
"
,
s
->
nw_id
,
ns_to_s
(
s
->
all_reduce_time
/
s
->
num_all_reduce
));
lp_io_write
(
lp
->
gid
,
"avg-all-reduce-time"
,
written
,
s
->
col_stats
);
avg_time
+=
s
->
elapsed_time
;
avg_comm_time
+=
(
s
->
elapsed_time
-
s
->
compute_time
);
...
...
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