Add per tile metric data support for stall sampling

Related-To: LOCI-3869

Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
This commit is contained in:
Ranjan, Joshua Santhosh
2023-01-31 12:46:10 +00:00
committed by Compute-Runtime-Automation
parent 29cbdc2430
commit 8ae2e3dac9
10 changed files with 614 additions and 70 deletions

View File

@@ -157,9 +157,9 @@ ze_result_t MetricIpSamplingLinuxImp::readData(uint8_t *pRawData, size_t *pRawDa
uint32_t MetricIpSamplingLinuxImp::getRequiredBufferSize(const uint32_t maxReportCount) {
uint32_t requiredBufferSize = getUnitReportSize() * maxReportCount;
const auto hwInfo = device.getNEODevice()->getHardwareInfo();
return std::min(requiredBufferSize, maxDssBufferSize * hwInfo.gtSystemInfo.MaxDualSubSlicesSupported);
const auto maxSupportedReportCount = (maxDssBufferSize * hwInfo.gtSystemInfo.MaxDualSubSlicesSupported) / unitReportSize;
return std::min(maxSupportedReportCount, maxReportCount) * getUnitReportSize();
}
uint32_t MetricIpSamplingLinuxImp::getUnitReportSize() {