Skip to content

Commit 9ce413c

Browse files
committed
fix include and remove cl context mutex
1 parent f47f9b5 commit 9ce413c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

unified-runtime/source/adapters/opencl/context.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
117117

118118
UR_APIEXPORT ur_result_t UR_APICALL
119119
urContextRelease(ur_context_handle_t hContext) {
120-
static std::mutex contextReleaseMutex;
121-
122-
std::lock_guard<std::mutex> lock(contextReleaseMutex);
123120
if (hContext->getRefCounter().decrement() == 0) {
124121
delete hContext;
125122
}

unified-runtime/source/common/cuda-hip/stream_queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <mutex>
1616
#include <vector>
1717

18-
#include "common/ur_ref_count.hpp"
18+
#include "common/ur_ref_counter.hpp"
1919

2020
using ur_stream_guard = std::unique_lock<std::mutex>;
2121

0 commit comments

Comments
 (0)