fix: remove operation access for unsupported types

Related-To: NEO-14077

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
Joshua Santosh Ranjan
2025-02-14 10:06:53 +00:00
committed by Compute-Runtime-Automation
parent d477efeb40
commit 76acacd413
2 changed files with 2 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023-2024 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -287,15 +287,12 @@ ze_result_t MetricOaExporter01::assignEquation(zet_intel_metric_df_gpu_equation_
case MetricsDiscovery::EQUATION_ELEM_GLOBAL_SYMBOL:
type = ZET_INTEL_METRIC_DF_EQUATION_ELEM_GLOBAL_SYMBOL;
status = getEquationOperation(currElement.operation, mdElement->Operation);
break;
case MetricsDiscovery::EQUATION_ELEM_LOCAL_COUNTER_SYMBOL:
type = ZET_INTEL_METRIC_DF_EQUATION_ELEM_LOCAL_COUNTER_SYMBOL;
status = getEquationOperation(currElement.operation, mdElement->Operation);
break;
case MetricsDiscovery::EQUATION_ELEM_OTHER_SET_COUNTER_SYMBOL:
type = ZET_INTEL_METRIC_DF_EQUATION_ELEM_OTHER_SET_COUNTER_SYMBOL;
status = getEquationOperation(currElement.operation, mdElement->Operation);
break;
case MetricsDiscovery::EQUATION_ELEM_LOCAL_METRIC_SYMBOL:

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023-2024 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -291,7 +291,6 @@ class MetricExportDataOaTest : public Test<MetricMultiDeviceFixture> {
case MetricsDiscovery::EQUATION_ELEM_GLOBAL_SYMBOL:
case MetricsDiscovery::EQUATION_ELEM_LOCAL_COUNTER_SYMBOL:
case MetricsDiscovery::EQUATION_ELEM_OTHER_SET_COUNTER_SYMBOL:
mdElement.Operation = MetricsDiscovery::EQUATION_OPER_LSHIFT;
break;
case MetricsDiscovery::EQUATION_ELEM_LOCAL_METRIC_SYMBOL:
@@ -342,7 +341,6 @@ class MetricExportDataOaTest : public Test<MetricMultiDeviceFixture> {
case ZET_INTEL_METRIC_DF_EQUATION_ELEM_GLOBAL_SYMBOL:
case ZET_INTEL_METRIC_DF_EQUATION_ELEM_LOCAL_COUNTER_SYMBOL:
case ZET_INTEL_METRIC_DF_EQUATION_ELEM_OTHER_SET_COUNTER_SYMBOL:
EXPECT_EQ(readUnaligned(&element.operation), ZET_INTEL_METRIC_DF_EQUATION_OPER_LSHIFT);
break;
case ZET_INTEL_METRIC_DF_EQUATION_ELEM_LOCAL_METRIC_SYMBOL: