"vscode:/vscode.git/clone" did not exist on "1c001b80aa606b869b49380b2afb341d975dd5be"
Commit 7a5be097 authored by Ramesh Errabolu's avatar Ramesh Errabolu
Browse files

Adjust GetMeanTime method for runs in validate mode

parent 1d123118
...@@ -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);
......
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