Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update metric_type #104

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading