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
wangsen
rocm_bandwidth_test
Commits
c06f3680
Unverified
Commit
c06f3680
authored
Jun 19, 2019
by
Ramesh Errabolu
Committed by
GitHub
Jun 19, 2019
Browse files
Merge pull request #39 from RadeonOpenCompute/fixValidate
Adjust GetMeanTime method for runs in validate mode
parents
1d123118
7a5be097
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
rocm_bandwidth_test_report.cpp
rocm_bandwidth_test_report.cpp
+5
-0
No files found.
rocm_bandwidth_test_report.cpp
View file @
c06f3680
...
@@ -124,6 +124,11 @@ double RocmBandwidthTest::GetMinTime(std::vector<double>& vec) {
...
@@ -124,6 +124,11 @@ double RocmBandwidthTest::GetMinTime(std::vector<double>& vec) {
double
RocmBandwidthTest
::
GetMeanTime
(
std
::
vector
<
double
>&
vec
)
{
double
RocmBandwidthTest
::
GetMeanTime
(
std
::
vector
<
double
>&
vec
)
{
// In validation mode we run only one iteration
if
(
validate_
)
{
return
vec
.
at
(
0
);
}
std
::
sort
(
vec
.
begin
(),
vec
.
end
());
std
::
sort
(
vec
.
begin
(),
vec
.
end
());
vec
.
erase
(
vec
.
begin
());
vec
.
erase
(
vec
.
begin
());
vec
.
erase
(
vec
.
begin
(),
vec
.
begin
()
+
num_iteration_
*
0.1
);
vec
.
erase
(
vec
.
begin
(),
vec
.
begin
()
+
num_iteration_
*
0.1
);
...
...
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