@@ -302,26 +302,31 @@ LZT_TEST_F(
302
302
#ifdef USE_ZESINIT
303
303
class PerformanceModuleParamComputePerformanceFactorZesTest
304
304
: public lzt::ZesSysmanCtsClass,
305
- public ::testing::WithParamInterface<int > {};
305
+ public ::testing::WithParamInterface<int > {
306
+ public:
307
+ bool is_performance_supported = false ;
308
+ };
306
309
#define PERFORMANCE_COMPUTE_TEST \
307
310
PerformanceModuleParamComputePerformanceFactorZesTest
308
311
#else // USE_ZESINIT
309
312
class PerformanceModuleParamComputePerformanceFactorTest
310
313
: public lzt::SysmanCtsClass,
311
- public ::testing::WithParamInterface<int > {};
314
+ public ::testing::WithParamInterface<int > {
315
+ public:
316
+ bool is_performance_supported = false ;
317
+ };
312
318
#define PERFORMANCE_COMPUTE_TEST \
313
319
PerformanceModuleParamComputePerformanceFactorTest
314
320
#endif // USE_ZESINIT
315
321
316
322
LZT_TEST_P (
317
323
PERFORMANCE_COMPUTE_TEST,
318
324
GivenValidPerformanceHandleWhenSettingMultiplePerformanceFactorForComputeThenValidPerformanceFactorIsReturned) {
319
- bool is_perf_supported = false ;
320
325
for (auto device : devices) {
321
326
uint32_t count = 0 ;
322
327
count = lzt::get_performance_handle_count (device);
323
328
if (count > 0 ) {
324
- is_perf_supported = true ;
329
+ is_performance_supported = true ;
325
330
LOG_INFO << " Performance handles are available on this device! " ;
326
331
auto performance_handles = lzt::get_performance_handles (device, count);
327
332
for (auto performance_handle : performance_handles) {
@@ -341,7 +346,7 @@ LZT_TEST_P(
341
346
LOG_INFO << " No performance handles found for this device! " ;
342
347
}
343
348
}
344
- if (!is_perf_supported ) {
349
+ if (!is_performance_supported ) {
345
350
FAIL () << " No performance handles found on any of the devices! " ;
346
351
}
347
352
}
0 commit comments