mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
fix: add various debug-mode asserts
Related-To: NEO-15630 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f3ba701a9b
commit
819702ceb8
@@ -145,7 +145,7 @@ ze_result_t IpSamplingMetricSourceImp::metricGroupGet(uint32_t *pCount, zet_metr
|
||||
if (cachedMetricGroup == nullptr) {
|
||||
auto status = cacheMetricGroup();
|
||||
|
||||
if (status != ZE_RESULT_SUCCESS) {
|
||||
if (status != ZE_RESULT_SUCCESS || cachedMetricGroup == nullptr) {
|
||||
*pCount = 0;
|
||||
isEnabled = false;
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
|
||||
Reference in New Issue
Block a user