Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/adapters/native_cpu/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ struct ur_context_handle_t_ : RefCounted {
return UR_RESULT_SUCCESS;
}

const native_cpu::usm_alloc_info &
get_alloc_info_entry(const void *ptr) const {
// Note this is made non-const to access the mutex
const native_cpu::usm_alloc_info &get_alloc_info_entry(const void *ptr) {
std::lock_guard<std::mutex> lock(alloc_mutex);
auto it = allocations.find(ptr);
if (it == allocations.end()) {
return native_cpu::usm_alloc_info_null_entry;
Expand Down