Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Oct 31, 2022
1 parent dc1501d commit 0c4e964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CHIPBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ CHIPContext *CHIPContext::retain() { UNIMPLEMENTED(nullptr); }

hipError_t CHIPContext::free(void *Ptr) {
CHIPDevice *ChipDev = Backend->getActiveDevice();
std::lock_guard<std::mutex> LockContext(ContextMtx); // touched CHIPContextOpenCL::SvmMemory
std::lock_guard<std::mutex> LockContext(
ContextMtx); // touched CHIPContextOpenCL::SvmMemory
std::lock_guard<std::mutex> LockDevice(ChipDev->DeviceMtx);
AllocationInfo *AllocInfo = ChipDev->AllocationTracker->getAllocInfo(Ptr);
if (!AllocInfo)
Expand Down

0 comments on commit 0c4e964

Please sign in to comment.