Printing rounded vlaues for compute performance factor

Related-To: LOCI-3542

Signed-off-by: Devarinti, Puneeth Kumar Reddy <puneeth.kumar.reddy.devarinti@intel.com>
This commit is contained in:
Devarinti, Puneeth Kumar Reddy
2022-12-14 11:06:08 +00:00
committed by Compute-Runtime-Automation
parent c1e27c85d7
commit 6238f53b47

View File

@@ -8,6 +8,7 @@
#include <level_zero/zes_api.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <getopt.h>
#include <iostream>
@@ -343,7 +344,7 @@ void testSysmanPerformance(ze_device_handle_t &device, std::vector<std::string>
double originalFactor = 0;
VALIDATECALL(zesPerformanceFactorGetConfig(handle, &originalFactor));
if (verbose) {
std::cout << "current Performance Factor = " << originalFactor << std::endl;
std::cout << "current Performance Factor = " << std::round(originalFactor) << std::endl;
}
std::cout << std::endl;
}