Skip to content

Commit

Permalink
[SYCL] Fix CTAD related warnings (#12539)
Browse files Browse the repository at this point in the history
Fixes remaining warnings introduced in
#11758
  • Loading branch information
sergey-semenov authored Jan 30, 2024
1 parent 9c6abeb commit 3985244
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sycl/unittests/scheduler/InOrderQueueHostTaskDeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDeps) {

InOrderQueue.submit([&](sycl::handler &CGH) {
CGH.host_task([&] {
std::unique_lock lk(CvMutex);
std::unique_lock<std::mutex> lk(CvMutex);
Cv.wait(lk, [&ready] { return ready; });
});
});
Expand All @@ -107,7 +107,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDeps) {
});

{
std::unique_lock lk(CvMutex);
std::unique_lock<std::mutex> lk(CvMutex);
ready = true;
}
Cv.notify_one();
Expand Down Expand Up @@ -144,7 +144,7 @@ TEST_F(SchedulerTest, InOrderQueueCrossDepsShortcutFuncs) {

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

{
std::unique_lock lk(CvMutex);
std::unique_lock<std::mutex> lk(CvMutex);
ready = true;
}
Cv.notify_one();
Expand All @@ -168,4 +168,4 @@ TEST_F(SchedulerTest, InOrderQueueCrossDepsShortcutFuncs) {
EXPECT_EQ(ExecutedCommands[0].second /*EventsCount*/, 0u);
EXPECT_EQ(ExecutedCommands[1].first /*CommandType*/, CommandType::KERNEL);
EXPECT_EQ(ExecutedCommands[1].second /*EventsCount*/, 0u);
}
}

0 comments on commit 3985244

Please sign in to comment.