Commit 6d299f3
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 getParamTuple(), getParam() and getQueueFlag() helpers to the
fixture, mirroring the naming convention of urMultiQueueTypeTestWithParam,
for clean access to the two parts of the parameter tuple. getParamTuple()
calls the base class getter using the fully qualified name
uur::urContextTestWithParam<...>::getParam() to avoid ambiguity.
- 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 getParam() instead of
std::get<1>(this->GetParam()), and restoring the numQueues parameter
in SuccessMt to getParam().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 6d299f3
1 file changed
Lines changed: 34 additions & 28 deletions
Lines changed: 34 additions & 28 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 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
98 | 114 | | |
99 | 115 | | |
100 | 116 | | |
| |||
322 | 338 | | |
323 | 339 | | |
324 | 340 | | |
325 | | - | |
| 341 | + | |
326 | 342 | | |
327 | 343 | | |
328 | 344 | | |
| |||
334 | 350 | | |
335 | 351 | | |
336 | 352 | | |
337 | | - | |
| 353 | + | |
338 | 354 | | |
339 | 355 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
| |||
394 | 404 | | |
395 | 405 | | |
396 | 406 | | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
402 | 410 | | |
403 | 411 | | |
404 | 412 | | |
| |||
457 | 465 | | |
458 | 466 | | |
459 | 467 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
466 | 472 | | |
467 | 473 | | |
468 | 474 | | |
| |||
0 commit comments