Skip to content

Commit

Permalink
fix: update metric_type (#104)
Browse files Browse the repository at this point in the history
Resolves: VLCLJ-2328

Signed-off-by: Bagria, Narendra <[email protected]>
  • Loading branch information
narenbagria authored Nov 13, 2024
1 parent 34eb9d4 commit 8f912c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/test_harness/tools/src/test_harness_metric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ bool check_metric_type_ip(zet_metric_group_handle_t metricGroupHandle,
MetricProp.pNext = nullptr;
EXPECT_EQ(ZE_RESULT_SUCCESS, zetMetricGetProperties(metric, &MetricProp));

if (MetricProp.metricType == ZET_METRIC_TYPE_IP_EXP && !includeExpFeature) {
if (MetricProp.metricType == ZET_METRIC_TYPE_IP && !includeExpFeature) {
return true;
}
}
Expand Down Expand Up @@ -284,7 +284,7 @@ get_metric_group_info(ze_device_handle_t device,

if (check_metric_type_ip(metricGroupHandle, includeExpFeature)) {
LOG_WARNING
<< "Test includes ZET_METRIC_TYPE_IP_EXP Metric Type - Skipped...";
<< "Test includes ZET_METRIC_TYPE_IP Metric Type - Skipped...";
continue;
}

Expand Down Expand Up @@ -355,7 +355,7 @@ get_metric_group_name_list(ze_device_handle_t device,
if (check_metric_type_ip(device, strItem, samplingType,
includeExpFeature)) {
LOG_WARNING
<< "Test includes ZET_METRIC_TYPE_IP_EXP Metric Type - Skipped...";
<< "Test includes ZET_METRIC_TYPE_IP Metric Type - Skipped...";
continue;
}
groupPropName.push_back(strItem);
Expand Down Expand Up @@ -847,7 +847,7 @@ bool verify_metric_type(zet_metric_type_t metric_type) {
case zet_metric_type_t::ZET_METRIC_TYPE_FLAG:
case zet_metric_type_t::ZET_METRIC_TYPE_RATIO:
case zet_metric_type_t::ZET_METRIC_TYPE_RAW:
case zet_metric_type_t::ZET_METRIC_TYPE_IP_EXP:
case zet_metric_type_t::ZET_METRIC_TYPE_IP:
break;
default:
metric_type_is_valid = false;
Expand Down

0 comments on commit 8f912c7

Please sign in to comment.