-
Notifications
You must be signed in to change notification settings - Fork 38
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
test: Added a new test to accurately check streamer event generation #107
base: master
Are you sure you want to change the base?
Conversation
Related-To: NEO-8752 Signed-off-by: shubham kumar <[email protected]>
device, ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_TIME_BASED, true); | ||
metricGroupInfo = lzt::optimize_metric_group_info_list(metricGroupInfo); | ||
|
||
for (auto groupInfo : metricGroupInfo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test validated for EU stall ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is validated on PVC
gta@DUT7267PVC:~/cts/out$ sudo LZT_METRIC_GROUPS_TEST_SPECIFIC=EuStallSampling LD_LIBRARY_PATH=/home/gta/loader/build/lib:/home/gta/notify/neo/build/bin/:/home/gta/notify/gmmlib/lib:/home/gta/notify/igc/lib:/home/gta/notify/metrics/discovery/lib:/home/gta/notify/metrics/library/lib ./test_metric --gtest_filter="*GivenValidMetricGroupWhenTimerBasedStreamerIsCreatedThenExpectStre
amerToNotifyEventAtProperTimeAndSucceed*"
Note: Google Test filter = *GivenValidMetricGroupWhenTimerBasedStreamerIsCreatedThenExpectStreamerToNotifyEventAtProperTimeAndSucceed*
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from zetMetricStreamerTest
[ RUN ] zetMetricStreamerTest.GivenValidMetricGroupWhenTimerBasedStreamerIsCreatedThenExpectStreamerToNotifyEventAtProperTimeAndSucceed
[2024-11-15 09:11:00] [info] Default Driver retrieved at index 0
[2024-11-15 09:11:00] [info] Default Device retrieved at index 0
[2024-11-15 09:11:00] [info] test device name Intel(R) Data Center GPU Max 1550 uuid 01000000-0000-0000-928d-55ba7d1b5d52
[2024-11-15 09:11:00] [info] test device is a root device
[2024-11-15 09:11:00] [info] specific group EuStallSampling
[2024-11-15 09:11:00] [info] specific name push_back EuStallSampling
[2024-11-15 09:11:00] [info] test metricGroup name EuStallSampling
[2024-11-15 09:11:08] [info] minimumTimeBeforeEventIsExpected 0.14056
[2024-11-15 09:11:08] [info] errorBuffer 0.007028
[2024-11-15 09:11:08] [info] additional sleep before expecting event to be ready 1
[ OK ] zetMetricStreamerTest.GivenValidMetricGroupWhenTimerBasedStreamerIsCreatedThenExpectStreamerToNotifyEventAtProperTimeAndSucceed (8903 ms)
[----------] 1 test from zetMetricStreamerTest (8903 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (8903 ms total)
[ PASSED ] 1 test.
zeCommandListAppendLaunchKernel(commandList, function, &tg, nullptr, 0, | ||
nullptr); | ||
|
||
lzt::close_command_list(commandList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the above till 1360 could be moved outside the loop
Related-To: NEO-8752