mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
fix: add unrecoverable to avoid division by zero
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e4c162c572
commit
a583213eef
@@ -104,6 +104,7 @@ Event::State IpSamplingMetricStreamerImp::getNotificationState() {
|
||||
|
||||
uint32_t IpSamplingMetricStreamerImp::getMaxSupportedReportCount() {
|
||||
const auto unitReportSize = ipSamplingSource.getMetricOsInterface()->getUnitReportSize();
|
||||
UNRECOVERABLE_IF(unitReportSize == 0);
|
||||
return ipSamplingSource.getMetricOsInterface()->getRequiredBufferSize(UINT32_MAX) / unitReportSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user