Add support for retrieving max b/w for DG2

Related-To: LOCI-3425

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
This commit is contained in:
Mayank Raghuwanshi
2022-11-11 19:56:55 +00:00
committed by Compute-Runtime-Automation
parent d4fe9298bf
commit 69e6c8b1c6

View File

@@ -185,6 +185,10 @@ ze_result_t LinuxMemoryImp::getBandwidthForDg2(zes_mem_bandwidth_t *pBandwidth)
return result;
}
pBandwidth->timestamp = timeStampVal * 1e-8; // Convert timeStamp into seconds
const std::string maxBwFile = "prelim_lmem_max_bw_Mbps";
uint64_t maxBw = 0;
pSysfsAccess->read(maxBwFile, maxBw);
pBandwidth->maxBandwidth = maxBw * MbpsToBytesPerSecond;
return result;
}