Unverified Commit c06f3680 authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by GitHub
Browse files

Merge pull request #39 from RadeonOpenCompute/fixValidate

Adjust GetMeanTime method for runs in validate mode
parents 1d123118 7a5be097
......@@ -124,6 +124,11 @@ double RocmBandwidthTest::GetMinTime(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());
vec.erase(vec.begin());
vec.erase(vec.begin(), vec.begin() + num_iteration_ * 0.1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment