Skip to content

Commit

Permalink
[SYCL] More Wctad-maybe-unsupported warnings fixes (#7774)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel authored Dec 14, 2022
1 parent 516d411 commit 325dcc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sycl/unittests/scheduler/EnqueueWithDependsOnDeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class DependsOnTests : public ::testing::Test {
void VerifyBlockedCommandsEnqueue(
detail::Command *BlockingCommand,
std::vector<detail::Command *> &BlockedCommands) {
std::unique_lock TestLock(m, std::defer_lock);
std::unique_lock<std::mutex> TestLock(m, std::defer_lock);
TestLock.lock();
detail::EnqueueResultT Result;
for (detail::Command *BlockedCmd : BlockedCommands) {
Expand Down Expand Up @@ -159,7 +159,7 @@ class DependsOnTests : public ::testing::Test {

std::mutex m;
std::function<void()> CustomHostLambda = [&]() {
std::unique_lock InsideHostTaskLock(this->m);
std::unique_lock<std::mutex> InsideHostTaskLock(this->m);
};
};

Expand Down Expand Up @@ -286,4 +286,4 @@ TEST_F(DependsOnTests, EnqueueNoMemObjDoubleKernelDepHost) {

std::vector<detail::Command *> BlockedCommands{Cmd2, Cmd3};
VerifyBlockedCommandsEnqueue(Cmd1, BlockedCommands);
}
}

0 comments on commit 325dcc3

Please sign in to comment.