Skip to content

Commit 7170b23

Browse files
[SYCL] Fix Wctad-maybe-unsupported warning (#7770)
Failed in https://github.com/intel/llvm/actions/runs/3689466995/jobs/6245440471
1 parent 9d3c26e commit 7170b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/unittests/queue/Wait.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ TEST(QueueWait, QueueWaitTest) {
123123
buffer<int, 1> buf{range<1>(1)};
124124

125125
std::mutex m;
126-
std::unique_lock TestLock(m, std::defer_lock);
126+
std::unique_lock<std::mutex> TestLock(m, std::defer_lock);
127127
TestLock.lock();
128128

129129
event HostTaskEvent = Q.submit([&](handler &Cgh) {
130130
auto acc = buf.template get_access<access::mode::read>(Cgh);
131131
Cgh.host_task([=, &m]() {
132132
(void)acc;
133-
std::unique_lock InsideHostTaskLock(m);
133+
std::unique_lock<std::mutex> InsideHostTaskLock(m);
134134
});
135135
});
136136
std::shared_ptr<detail::event_impl> HostTaskEventImpl =

0 commit comments

Comments
 (0)