Skip to content

Commit 0391f61

Browse files
EuphoricThinkingbb-ur
authored andcommitted
add multiple submission modes in queue gtests (#20969)
Modifications allow for running tests with different queue submission modes, either specified by the user or provided by default. This is made possible through the introduced macros: - `UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(FIXTURE)`: instantiates the provided `FIXTURE` with the submission modes: `UR_QUEUE_FLAG_SUBMISSION_BATCHED` and `UR_QUEUE_FLAG_SUBMISSION_IMMEDIATE` - `UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM(FIXTURE, VALUES, PRINTER)`: similarly instantiates the `FIXTURE` with either batched or immediate submission modes, but additionally accepts parameters - `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES(FIXTURE, MODES)`: instantiates the provided `FIXTURE` with queue submission modes provided by the user - `UUR_DEVICE_TEST_SUITE_WITH_DEFAULT_QUEUE(FIXTURE)`: provides only one default submission mode (specified as 0); the exact mode is chosen by the device - `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES_PRINTER(FIXTURE, MODES, PRINTER)`: similar to `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES`, but the user also provides the `PRINTER` function - `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES_AND_PARAM(FIXTURE, VALUES, MODES, PRINTER)`: similar to `UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM`, but the user also provides queue submission modes At this moment, `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES_AND_PARAM` is not used in any test. As a helper intended for parametrized tests, this macro is complementary to `UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES`, which enables the user to specify queue submission modes for unparametrized tests. Example usage: ``` UUR_DEVICE_TEST_SUITE_WITH_QUEUE_TYPES_AND_PARAM( urEnqueueMemBufferFillTest, testing::ValuesIn(test_cases), testing::ValuesIn(UR_QUEUE_FLAG_SUBMISSION_BATCHED, UR_QUEUE_FLAG_SUBMISSION_IMMEDIATE), uur::printFillTestStringMultiQueueType<urEnqueueMemBufferFillTest>); ``` Tests that do not use any queue (like most of the urProgramTests, except for urProgramSetSpecializationConstantsTest) are instantiated using `UUR_DEVICE_TEST_SUITE_WITH_DEFAULT_QUEUE`. There might be more tests that do not need a queue, since the heuristic for determining whether the given test needs a queue consisted of checking whether the queue defined in the test class is mentioned in the test file (not checked per derived test class). This patch introduces equivalents for `urQueueTest` for unparametrized tests and `urQueueTestWithParam`, which are `urMultiQueueTypeTest` and `urMultiQueueTypeTestWithParam`, respectively. Parametrized tests use a new parameter type: `MultiQueueParam (std::tuple<T, ur_queue_flag_t>)`. Similarly, the previously "unparametrized" tests, which were eventually parametrized with the `DeviceTuple`, now use `std::tuple<DeviceTuple, ur_queue_flag_t>` as their parameter type. Additionally, urCommandBufferCommandExpTest is removed since it is not referenced anywhere.
1 parent f12e025 commit 0391f61

File tree

94 files changed

+779
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+779
-499
lines changed

test/adapters/level_zero/enqueue_alloc.cpp

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2025 Intel Corporation
1+
// Copyright (C) 2025-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -160,7 +160,7 @@ struct urL0EnqueueAllocMultiQueueMultiDeviceTest
160160
std::vector<ur_queue_handle_t> queues;
161161
};
162162

163-
UUR_DEVICE_TEST_SUITE_WITH_PARAM(
163+
UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM(
164164
urL0EnqueueAllocTest,
165165
::testing::ValuesIn({
166166
EnqueueAllocTestParam{urEnqueueUSMHostAllocExp,
@@ -170,13 +170,11 @@ UUR_DEVICE_TEST_SUITE_WITH_PARAM(
170170
EnqueueAllocTestParam{urEnqueueUSMDeviceAllocExp,
171171
uur::GetDeviceUSMDeviceSupport},
172172
}),
173-
uur::deviceTestWithParamPrinter<EnqueueAllocTestParam>);
173+
uur::deviceTestWithParamPrinterMulti<EnqueueAllocTestParam>);
174174

175175
TEST_P(urL0EnqueueAllocTest, Success) {
176-
const auto enqueueUSMAllocFunc =
177-
std::get<1>(this->GetParam()).enqueueUSMAllocFunc;
178-
const auto checkUSMSupportFunc =
179-
std::get<1>(this->GetParam()).checkUSMSupportFunc;
176+
const auto enqueueUSMAllocFunc = getParam().enqueueUSMAllocFunc;
177+
const auto checkUSMSupportFunc = getParam().checkUSMSupportFunc;
180178

181179
ur_device_usm_access_capability_flags_t USMSupport = 0;
182180
ASSERT_SUCCESS(checkUSMSupportFunc(device, USMSupport));
@@ -200,10 +198,8 @@ TEST_P(urL0EnqueueAllocTest, Success) {
200198
}
201199

202200
TEST_P(urL0EnqueueAllocTest, SuccessReuse) {
203-
const auto enqueueUSMAllocFunc =
204-
std::get<1>(this->GetParam()).enqueueUSMAllocFunc;
205-
const auto checkUSMSupportFunc =
206-
std::get<1>(this->GetParam()).checkUSMSupportFunc;
201+
const auto enqueueUSMAllocFunc = getParam().enqueueUSMAllocFunc;
202+
const auto checkUSMSupportFunc = getParam().checkUSMSupportFunc;
207203

208204
ur_device_usm_access_capability_flags_t USMSupport = 0;
209205
ASSERT_SUCCESS(checkUSMSupportFunc(device, USMSupport));
@@ -238,10 +234,8 @@ TEST_P(urL0EnqueueAllocTest, SuccessReuse) {
238234
}
239235

240236
TEST_P(urL0EnqueueAllocTest, SuccessFromPool) {
241-
const auto enqueueUSMAllocFunc =
242-
std::get<1>(this->GetParam()).enqueueUSMAllocFunc;
243-
const auto checkUSMSupportFunc =
244-
std::get<1>(this->GetParam()).checkUSMSupportFunc;
237+
const auto enqueueUSMAllocFunc = getParam().enqueueUSMAllocFunc;
238+
const auto checkUSMSupportFunc = getParam().checkUSMSupportFunc;
245239

246240
ur_device_usm_access_capability_flags_t USMSupport = 0;
247241
ASSERT_SUCCESS(checkUSMSupportFunc(device, USMSupport));
@@ -269,10 +263,8 @@ TEST_P(urL0EnqueueAllocTest, SuccessFromPool) {
269263
}
270264

271265
TEST_P(urL0EnqueueAllocTest, SuccessWithKernel) {
272-
const auto enqueueUSMAllocFunc =
273-
std::get<1>(this->GetParam()).enqueueUSMAllocFunc;
274-
const auto checkUSMSupportFunc =
275-
std::get<1>(this->GetParam()).checkUSMSupportFunc;
266+
const auto enqueueUSMAllocFunc = getParam().enqueueUSMAllocFunc;
267+
const auto checkUSMSupportFunc = getParam().checkUSMSupportFunc;
276268

277269
ur_device_usm_access_capability_flags_t USMSupport = 0;
278270
ASSERT_SUCCESS(checkUSMSupportFunc(device, USMSupport));
@@ -294,10 +286,8 @@ TEST_P(urL0EnqueueAllocTest, SuccessWithKernel) {
294286
}
295287

296288
TEST_P(urL0EnqueueAllocTest, SuccessWithKernelRepeat) {
297-
const auto enqueueUSMAllocFunc =
298-
std::get<1>(this->GetParam()).enqueueUSMAllocFunc;
299-
const auto checkUSMSupportFunc =
300-
std::get<1>(this->GetParam()).checkUSMSupportFunc;
289+
const auto enqueueUSMAllocFunc = getParam().enqueueUSMAllocFunc;
290+
const auto checkUSMSupportFunc = getParam().checkUSMSupportFunc;
301291

302292
ur_device_usm_access_capability_flags_t USMSupport = 0;
303293
ASSERT_SUCCESS(checkUSMSupportFunc(device, USMSupport));

test/adapters/level_zero/urEnqueueMemBufferMapHostPtr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2023 Intel Corporation
1+
// Copyright (C) 2023-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -15,7 +15,7 @@
1515
using urEnqueueMemBufferMapTestWithParamL0 =
1616
uur::urMemBufferQueueTestWithParam<uur::mem_buffer_test_parameters_t>;
1717

18-
UUR_DEVICE_TEST_SUITE_WITH_PARAM(
18+
UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM(
1919
urEnqueueMemBufferMapTestWithParamL0,
2020
::testing::ValuesIn(uur::mem_buffer_test_parameters),
2121
uur::printMemBufferTestString<urEnqueueMemBufferMapTestWithParamL0>);

test/adapters/level_zero/urEventCreateWithNativeHandle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024 Intel Corporation
1+
// Copyright (C) 2024-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -17,8 +17,8 @@
1717
#include "ze_helpers.hpp"
1818

1919
using namespace std::chrono_literals;
20-
using urLevelZeroEventNativeHandleTest = uur::urQueueTest;
21-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urLevelZeroEventNativeHandleTest);
20+
using urLevelZeroEventNativeHandleTest = uur::urMultiQueueTypeTest;
21+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(urLevelZeroEventNativeHandleTest);
2222

2323
#define TEST_MEMCPY_SIZE 4096
2424

test/adapters/level_zero/urKernelCreateWithNativeHandle.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024 Intel Corporation
1+
// Copyright (C) 2024-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -12,8 +12,9 @@
1212
#include "ze_api.h"
1313
#include <uur/fixtures.h>
1414

15-
using urLevelZeroKernelNativeHandleTest = uur::urQueueTest;
16-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urLevelZeroKernelNativeHandleTest);
15+
using urLevelZeroKernelNativeHandleTest = uur::urMultiQueueTypeTest;
16+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(
17+
urLevelZeroKernelNativeHandleTest);
1718

1819
TEST_P(urLevelZeroKernelNativeHandleTest, OwnedHandleRelease) {
1920
ze_context_handle_t native_context;

test/adapters/level_zero/urMemBufferCreateWithNativeHandleShared.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2025 Intel Corporation
1+
// Copyright (C) 2025-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -13,8 +13,9 @@
1313
#include "ze_api.h"
1414
#include <uur/fixtures.h>
1515

16-
using urMemBufferCreateWithNativeHandleTest = uur::urQueueTest;
17-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urMemBufferCreateWithNativeHandleTest);
16+
using urMemBufferCreateWithNativeHandleTest = uur::urMultiQueueTypeTest;
17+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(
18+
urMemBufferCreateWithNativeHandleTest);
1819

1920
TEST_P(urMemBufferCreateWithNativeHandleTest, SharedBufferIsUsedDirectly) {
2021
UUR_KNOWN_FAILURE_ON(uur::LevelZero{});

test/adapters/level_zero/urProgramLink.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024 Intel Corporation
1+
// Copyright (C) 2024-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -11,7 +11,7 @@
1111
#include <uur/fixtures.h>
1212

1313
using urLevelZeroProgramLinkTest = uur::urProgramTest;
14-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urLevelZeroProgramLinkTest);
14+
UUR_DEVICE_TEST_SUITE_WITH_DEFAULT_QUEUE(urLevelZeroProgramLinkTest);
1515

1616
TEST_P(urLevelZeroProgramLinkTest, InvalidLinkOptionsPrintedInLog) {
1717
ur_program_handle_t linked_program = nullptr;

test/adapters/level_zero/v2/deferred_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024 Intel Corporation
1+
// Copyright (C) 2024-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -29,7 +29,7 @@ struct urEnqueueKernelLaunchTest : uur::urKernelExecutionTest {
2929
size_t global_offset = 0;
3030
size_t n_dimensions = 1;
3131
};
32-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urEnqueueKernelLaunchTest);
32+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(urEnqueueKernelLaunchTest);
3333

3434
TEST_P(urEnqueueKernelLaunchTest, DeferredKernelRelease) {
3535
ur_mem_handle_t buffer = nullptr;

test/conformance/enqueue/helpers.h

Lines changed: 65 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2023 Intel Corporation
1+
// Copyright (C) 2023-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -7,7 +7,9 @@
77
#ifndef UUR_ENQUEUE_RECT_HELPERS_H_INCLUDED
88
#define UUR_ENQUEUE_RECT_HELPERS_H_INCLUDED
99

10+
#include "ur_api.h"
1011
#include <cstring>
12+
#include <sstream>
1113
#include <uur/fixtures.h>
1214

1315
namespace uur {
@@ -31,8 +33,33 @@ printRectTestString(const testing::TestParamInfo<typename T::ParamType> &info) {
3133
// ParamType will be std::tuple<ur_device_handle_t, test_parameters_t>
3234
const auto device_handle = std::get<0>(info.param).device;
3335
const auto platform_device_name = GetPlatformAndDeviceName(device_handle);
34-
const auto &test_name = std::get<1>(info.param).name;
35-
return platform_device_name + "__" + test_name;
36+
37+
std::stringstream ss;
38+
auto param_tuple = std::get<1>(info.param);
39+
auto test_name = std::get<0>(param_tuple).name;
40+
auto queue_mode = std::get<1>(param_tuple);
41+
42+
ss << platform_device_name << "__" << test_name << "__" << queue_mode;
43+
44+
return ss.str();
45+
}
46+
47+
template <typename T>
48+
inline std::string printRectTestStringMultiQueue(
49+
const testing::TestParamInfo<typename T::ParamType> &info) {
50+
// ParamType will be std::tuple<ur_device_handle_t, test_parameters_t>
51+
const auto device_handle = std::get<0>(info.param).device;
52+
const auto platform_device_name = GetPlatformAndDeviceName(device_handle);
53+
auto paramTuple = std::get<1>(info.param);
54+
auto param = std::get<0>(paramTuple);
55+
56+
auto queueMode = std::get<1>(paramTuple);
57+
58+
std::stringstream test_name;
59+
test_name << platform_device_name;
60+
test_name << param.name << "__" << queueMode;
61+
62+
return test_name.str();
3663
}
3764

3865
// Performs host side equivalent of urEnqueueMemBufferReadRect,
@@ -74,13 +101,18 @@ print2DTestString(const testing::TestParamInfo<typename T::ParamType> &info) {
74101
const auto platform_device_name =
75102
uur::GetPlatformAndDeviceName(device_handle);
76103
std::stringstream test_name;
77-
const auto src_kind = std::get<1>(std::get<1>(info.param));
78-
const auto dst_kind = std::get<2>(std::get<1>(info.param));
79-
test_name << platform_device_name << "__pitch__"
80-
<< std::get<0>(std::get<1>(info.param)).pitch << "__width__"
81-
<< std::get<0>(std::get<1>(info.param)).width << "__height__"
82-
<< std::get<0>(std::get<1>(info.param)).height << "__src__"
83-
<< src_kind << "__dst__" << dst_kind;
104+
105+
auto paramTuple = std::get<1>(info.param);
106+
auto param = std::get<0>(paramTuple);
107+
auto queueMode = std::get<1>(paramTuple);
108+
const auto src_kind = std::get<1>(param);
109+
const auto dst_kind = std::get<2>(param);
110+
TestParameters2D testParams = std::get<0>(param);
111+
test_name << platform_device_name << "__pitch__" << testParams.pitch
112+
<< "__width__" << testParams.width << "__height__"
113+
<< testParams.height << "__src__" << src_kind << "__dst__"
114+
<< dst_kind << "__" << queueMode;
115+
84116
return test_name.str();
85117
}
86118

@@ -122,10 +154,16 @@ inline std::string printMemBufferTestString(
122154
const auto device_handle = std::get<0>(info.param).device;
123155
const auto platform_device_name = GetPlatformAndDeviceName(device_handle);
124156

157+
auto paramTuple = std::get<1>(info.param);
158+
auto param = std::get<0>(paramTuple);
159+
auto queueMode = std::get<1>(paramTuple);
160+
125161
std::stringstream ss;
126-
ss << std::get<1>(info.param).count;
162+
ss << param.count;
127163
ss << "_";
128-
ss << std::get<1>(info.param).mem_flag;
164+
ss << param.mem_flag;
165+
ss << "__";
166+
ss << queueMode;
129167

130168
return platform_device_name + "__" + ss.str();
131169
}
@@ -138,22 +176,31 @@ inline std::string printMemBufferMapWriteTestString(
138176
const auto device_handle = std::get<0>(info.param).device;
139177
const auto platform_device_name = GetPlatformAndDeviceName(device_handle);
140178

179+
auto paramTuple = std::get<1>(info.param);
180+
auto param = std::get<0>(paramTuple);
181+
auto queueMode = std::get<1>(paramTuple);
182+
141183
std::stringstream ss;
142-
ss << std::get<1>(info.param).map_flag;
184+
ss << param.map_flag << "__" << queueMode;
143185

144186
return platform_device_name + "__" + ss.str();
145187
}
146188

147189
template <typename T>
148-
inline std::string
149-
printFillTestString(const testing::TestParamInfo<typename T::ParamType> &info) {
190+
inline std::string printFillTestStringMultiQueueType(
191+
const testing::TestParamInfo<typename T::ParamType> &info) {
150192
const auto device_handle = std::get<0>(info.param).device;
151193
const auto platform_device_name =
152194
uur::GetPlatformAndDeviceName(device_handle);
195+
auto paramTuple = std::get<1>(info.param);
196+
auto param = std::get<0>(paramTuple);
197+
198+
auto queueMode = std::get<1>(paramTuple);
199+
153200
std::stringstream test_name;
154-
test_name << platform_device_name << "__size__"
155-
<< std::get<1>(info.param).size << "__patternSize__"
156-
<< std::get<1>(info.param).pattern_size;
201+
test_name << platform_device_name << "__size__" << param.size
202+
<< "__patternSize__" << param.pattern_size << "__" << queueMode;
203+
157204
return test_name.str();
158205
}
159206

test/conformance/enqueue/urEnqueueDeviceGlobalVariableRead.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2023 Intel Corporation
1+
// Copyright (C) 2023-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -8,10 +8,10 @@
88
using urEnqueueDeviceGetGlobalVariableReadWithParamTest =
99
uur::urGlobalVariableWithParamTest<uur::BoolTestParam>;
1010

11-
UUR_DEVICE_TEST_SUITE_WITH_PARAM(
11+
UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM(
1212
urEnqueueDeviceGetGlobalVariableReadWithParamTest,
1313
testing::ValuesIn(uur::BoolTestParam::makeBoolParam("Blocking")),
14-
uur::deviceTestWithParamPrinter<uur::BoolTestParam>);
14+
uur::deviceTestWithParamPrinterMulti<uur::BoolTestParam>);
1515

1616
TEST_P(urEnqueueDeviceGetGlobalVariableReadWithParamTest, Success) {
1717
bool is_blocking = getParam().value;
@@ -44,7 +44,8 @@ TEST_P(urEnqueueDeviceGetGlobalVariableReadWithParamTest, Success) {
4444
}
4545

4646
using urEnqueueDeviceGetGlobalVariableReadTest = uur::urGlobalVariableTest;
47-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urEnqueueDeviceGetGlobalVariableReadTest);
47+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(
48+
urEnqueueDeviceGetGlobalVariableReadTest);
4849

4950
TEST_P(urEnqueueDeviceGetGlobalVariableReadTest, InvalidNullHandleQueue) {
5051
ASSERT_EQ_RESULT(urEnqueueDeviceGlobalVariableRead(

test/conformance/enqueue/urEnqueueDeviceGlobalVariableWrite.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2023 Intel Corporation
1+
// Copyright (C) 2023-2026 Intel Corporation
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
33
// Exceptions. See LICENSE.TXT
44
//
@@ -8,10 +8,10 @@
88
using urEnqueueDeviceGetGlobalVariableWriteWithParamTest =
99
uur::urGlobalVariableWithParamTest<uur::BoolTestParam>;
1010

11-
UUR_DEVICE_TEST_SUITE_WITH_PARAM(
11+
UUR_MULTI_QUEUE_TYPE_TEST_SUITE_WITH_PARAM(
1212
urEnqueueDeviceGetGlobalVariableWriteWithParamTest,
1313
testing::ValuesIn(uur::BoolTestParam::makeBoolParam("Blocking")),
14-
uur::deviceTestWithParamPrinter<uur::BoolTestParam>);
14+
uur::deviceTestWithParamPrinterMulti<uur::BoolTestParam>);
1515

1616
TEST_P(urEnqueueDeviceGetGlobalVariableWriteWithParamTest, Success) {
1717
bool is_blocking = getParam().value;
@@ -46,7 +46,8 @@ TEST_P(urEnqueueDeviceGetGlobalVariableWriteWithParamTest, Success) {
4646
}
4747

4848
using urEnqueueDeviceGetGlobalVariableWriteTest = uur::urGlobalVariableTest;
49-
UUR_INSTANTIATE_DEVICE_TEST_SUITE(urEnqueueDeviceGetGlobalVariableWriteTest);
49+
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(
50+
urEnqueueDeviceGetGlobalVariableWriteTest);
5051

5152
TEST_P(urEnqueueDeviceGetGlobalVariableWriteTest, InvalidNullHandleQueue) {
5253
ASSERT_EQ_RESULT(urEnqueueDeviceGlobalVariableWrite(

0 commit comments

Comments
 (0)