Skip to content

Commit de391df

Browse files
committed
test: fix ip sampling no overflow test
Related-To: NEO-16556 Signed-off-by: shubham kumar <shubham.kumar@intel.com>
1 parent e05e7f2 commit de391df

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

conformance_tests/tools/metrics/src/test_metric.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ LZT_TEST_F(
15971597
GivenValidTypeIpMetricGroupWhenTimerBasedStreamerIsCreatedWithNoOverflowThenValidateStallSampleData) {
15981598
metric_run_ip_sampling_with_validation(false, devices, notifyEveryNReports,
15991599
samplingPeriod,
1600-
to_u32(TimeForNReportsComplete));
1600+
to_u32(TimeForNReportsComplete), 4096);
16011601
}
16021602

16031603
LZT_TEST_F(

conformance_tests/tools/metrics/src/test_metric_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void metric_validate_stall_sampling_data(
244244
void metric_run_ip_sampling_with_validation(
245245
bool enableOverflow, const std::vector<ze_device_handle_t> &devices,
246246
uint32_t notifyEveryNReports, uint32_t samplingPeriod,
247-
uint32_t timeForNReportsComplete) {
247+
uint32_t timeForNReportsComplete, uint32_t dimensions = 8192) {
248248

249249
uint32_t numberOfFunctionCalls;
250250
if (enableOverflow) {
@@ -300,7 +300,7 @@ void metric_run_ip_sampling_with_validation(
300300
for (auto &fData : functionDataBuf) {
301301
fData.function = get_matrix_multiplication_kernel(
302302
device, &fData.tg, &fData.a_buffer, &fData.b_buffer,
303-
&fData.c_buffer, 4096);
303+
&fData.c_buffer, dimensions);
304304
zeCommandListAppendLaunchKernel(commandList, fData.function, &fData.tg,
305305
nullptr, 0, nullptr);
306306
}

conformance_tests/tools/metrics/src/test_metric_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ void metric_validate_stall_sampling_data(
2424
void metric_run_ip_sampling_with_validation(
2525
bool enableOverflow, const std::vector<ze_device_handle_t> &devices,
2626
uint32_t notifyEveryNReports, uint32_t samplingPeriod,
27-
uint32_t timeForNReportsComplete);
27+
uint32_t timeForNReportsComplete, uint32_t dimensions = 8192);
2828

2929
#endif // TEST_METRIC_UTILS_HPP

0 commit comments

Comments
 (0)