Skip to content

Commit 3985244

Browse files
[SYCL] Fix CTAD related warnings (#12539)
Fixes remaining warnings introduced in #11758
1 parent 9c6abeb commit 3985244

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/unittests/scheduler/InOrderQueueHostTaskDeps.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDeps) {
9191

9292
InOrderQueue.submit([&](sycl::handler &CGH) {
9393
CGH.host_task([&] {
94-
std::unique_lock lk(CvMutex);
94+
std::unique_lock<std::mutex> lk(CvMutex);
9595
Cv.wait(lk, [&ready] { return ready; });
9696
});
9797
});
@@ -107,7 +107,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDeps) {
107107
});
108108

109109
{
110-
std::unique_lock lk(CvMutex);
110+
std::unique_lock<std::mutex> lk(CvMutex);
111111
ready = true;
112112
}
113113
Cv.notify_one();
@@ -144,7 +144,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDepsShortcutFuncs) {
144144

145145
InOrderQueue.submit([&](sycl::handler &CGH) {
146146
CGH.host_task([&] {
147-
std::unique_lock lk(CvMutex);
147+
std::unique_lock<std::mutex> lk(CvMutex);
148148
Cv.wait(lk, [&ready] { return ready; });
149149
});
150150
});
@@ -156,7 +156,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDepsShortcutFuncs) {
156156
event Ev2 = InOrderQueue.single_task<TestKernel<>>([] {});
157157

158158
{
159-
std::unique_lock lk(CvMutex);
159+
std::unique_lock<std::mutex> lk(CvMutex);
160160
ready = true;
161161
}
162162
Cv.notify_one();
@@ -168,4 +168,4 @@ TEST_F(SchedulerTest, InOrderQueueCrossDepsShortcutFuncs) {
168168
EXPECT_EQ(ExecutedCommands[0].second /*EventsCount*/, 0u);
169169
EXPECT_EQ(ExecutedCommands[1].first /*CommandType*/, CommandType::KERNEL);
170170
EXPECT_EQ(ExecutedCommands[1].second /*EventsCount*/, 0u);
171-
}
171+
}

0 commit comments

Comments
 (0)