Skip to content

Commit 0aa0bc6

Browse files
authored
[SYCL] Eliminate unused mutex (#18120)
The Tracing Mutex doesn't seem to ever be used. Signed-off-by: James Brodman <[email protected]>
1 parent 6f4965f commit 0aa0bc6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sycl/source/detail/adapter.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class Adapter {
4747

4848
Adapter(ur_adapter_handle_t adapter, backend UseBackend)
4949
: MAdapter(adapter), MBackend(UseBackend),
50-
TracingMutex(std::make_shared<std::mutex>()),
5150
MAdapterMutex(std::make_shared<std::mutex>()) {
5251

5352
#ifdef _WIN32
@@ -212,7 +211,6 @@ class Adapter {
212211
private:
213212
ur_adapter_handle_t MAdapter;
214213
backend MBackend;
215-
std::shared_ptr<std::mutex> TracingMutex;
216214
// Mutex to guard UrPlatforms and LastDeviceIds.
217215
// Note that this is a temporary solution until we implement the global
218216
// Device/Platform cache later.

0 commit comments

Comments
 (0)