mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
29cbdc2430
commit
8ae2e3dac9
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user