Skip to content

Commit 4c98335

Browse files
[SYCL] Fix unittest initialization of queue with selector (#6540)
#6486 added new queue constructors for the use of callable device selectors. In accordance with SYCL 2020 these constructors are marked explicit and as such implicit conversion from initializer lists does not work. These changes fixes the Wait.cpp unittest to use the explicit constructor. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 64f0db7 commit 4c98335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/queue/Wait.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ TEST(QueueWait, QueueWaitTest) {
174174
// Test behaviour for emulating an OOO queue with multiple in-order ones.
175175
TestContext = {};
176176
TestContext.SupportOOO = false;
177-
Q = {Ctx, default_selector()};
177+
Q = queue{Ctx, default_selector()};
178178
Q.memset(HostAlloc, 42, 1);
179179
// The event is kept alive in this case to call wait.
180180
ASSERT_EQ(TestContext.EventReferenceCount, 1);

0 commit comments

Comments
 (0)