Commit c7c9a6f
committed
[UR][L0v2] Parameterize urL0EnqueueAllocMultiQueueSameDeviceTest over all queue types
Enable the urL0EnqueueAllocMultiQueueSameDeviceTest and parameterize it
over all queue submission modes (UR_QUEUE_FLAG_SUBMISSION_BATCHED and
UR_QUEUE_FLAG_SUBMISSION_IMMEDIATE) by:
- Removing SKIP_IF_BATCHED_QUEUE to enable the test for batched queues.
- Changing the base class template parameter from
EnqueueAllocMultiQueueTestParam to
uur::MultiQueueParam<EnqueueAllocMultiQueueTestParam> so that the
queue mode becomes part of the test parameter.
- Adding getMultiQueueParam(), getAllocParam() and getQueueFlags() helpers
to the fixture for clean access to the two parts of the parameter tuple.
getMultiQueueParam() calls the base class getter using the fully qualified
name uur::urContextTestWithParam<...>::getParam() to avoid ambiguity.
The names are specific enough to not be confused with GoogleTest's
conventional GetParam().
- Creating queues with the parameterized flag via ur_queue_properties_t
instead of a hardcoded UR_QUEUE_FLAG_SUBMISSION_BATCHED.
- Switching the test suite macro from UUR_DEVICE_TEST_SUITE_WITH_PARAM
to UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM and the printer to
deviceTestWithParamPrinterMulti, which expands the suite to cover
both queue modes automatically.
- Updating all three test bodies (SuccessMt, SuccessReuse,
SuccessDependantMt) to use getAllocParam() instead of
std::get<1>(this->GetParam()), and restoring the numQueues parameter
in SuccessMt to getAllocParam().numQueues.
This ensures both batched and immediate queues are covered by default
test runs without requiring UR_L0_V2_FORCE_BATCHED=1.
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>1 parent cbd9450 commit c7c9a6f
1 file changed
Lines changed: 35 additions & 22 deletions
Lines changed: 35 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
85 | | - | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
98 | 115 | | |
99 | 116 | | |
100 | 117 | | |
| |||
322 | 339 | | |
323 | 340 | | |
324 | 341 | | |
325 | | - | |
| 342 | + | |
326 | 343 | | |
327 | 344 | | |
328 | 345 | | |
| |||
334 | 351 | | |
335 | 352 | | |
336 | 353 | | |
337 | | - | |
| 354 | + | |
338 | 355 | | |
339 | 356 | | |
340 | | - | |
341 | | - | |
342 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
343 | 360 | | |
344 | | - | |
| 361 | + | |
345 | 362 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 363 | + | |
351 | 364 | | |
352 | 365 | | |
353 | 366 | | |
| |||
394 | 407 | | |
395 | 408 | | |
396 | 409 | | |
397 | | - | |
| 410 | + | |
398 | 411 | | |
399 | | - | |
| 412 | + | |
400 | 413 | | |
401 | | - | |
| 414 | + | |
402 | 415 | | |
403 | 416 | | |
404 | 417 | | |
| |||
457 | 470 | | |
458 | 471 | | |
459 | 472 | | |
460 | | - | |
461 | | - | |
| 473 | + | |
| 474 | + | |
462 | 475 | | |
463 | | - | |
| 476 | + | |
464 | 477 | | |
465 | | - | |
| 478 | + | |
466 | 479 | | |
467 | 480 | | |
468 | 481 | | |
| |||
0 commit comments