mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d4fe9298bf
commit
69e6c8b1c6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user