Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
a0643c22
Commit
a0643c22
authored
Jun 07, 2022
by
turneram
Browse files
Remove total avg latency
parent
275f4487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
src/program.cpp
src/program.cpp
+0
-8
No files found.
src/program.cpp
View file @
a0643c22
...
...
@@ -577,12 +577,6 @@ double common_average(const std::vector<double>& v)
return
total
/
std
::
distance
(
v
.
begin
()
+
n
,
v
.
end
()
-
n
);
}
double
total_average
(
const
std
::
vector
<
double
>&
v
)
{
double
total
=
std
::
accumulate
(
v
.
begin
(),
v
.
end
(),
0.0
);
return
total
/
std
::
distance
(
v
.
begin
(),
v
.
end
());
}
std
::
string
perf_group
(
const
operation
&
op
)
{
auto
attr
=
op
.
attributes
();
...
...
@@ -659,7 +653,6 @@ void program::perf_report(std::ostream& os,
}
double
total_time
=
common_average
(
total_vec
);
double
avg_latency
=
total_average
(
total_vec
);
double
p99_latency
=
total_vec
[
static_cast
<
std
::
size_t
>
(
total_vec
.
size
()
*
0.99
)
-
1
];
double
rate
=
1000.0
/
total_time
;
double
overhead_time
=
common_average
(
overhead_vec
);
...
...
@@ -710,7 +703,6 @@ void program::perf_report(std::ostream& os,
os
<<
"Batch size: "
<<
batch
<<
std
::
endl
;
os
<<
"Rate: "
<<
rate
*
batch
<<
"/sec"
<<
std
::
endl
;
os
<<
"Total time: "
<<
total_time
<<
"ms"
<<
std
::
endl
;
os
<<
"Average latency: "
<<
avg_latency
<<
"ms"
<<
std
::
endl
;
os
<<
"99th percentile latency: "
<<
p99_latency
<<
"ms"
<<
std
::
endl
;
os
<<
"Total instructions time: "
<<
total_instruction_time
<<
"ms"
<<
std
::
endl
;
os
<<
"Overhead time: "
<<
overhead_time
<<
"ms"
...
...
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