diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index 148c5e371b..d155d5097f 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -833,6 +833,10 @@ hsa_status_t Runtime::InteropMap(uint32_t num_agents, Agent** agents, *size = info.SizeInBytes; *ptr = info.MemoryAddress; + ScopedAcquire lock(&memory_lock_); + allocation_map_[info.MemoryAddress] = AllocationRegion( + nullptr, info.SizeInBytes, info.SizeInBytes, core::MemoryRegion::AllocateNoFlags); + return HSA_STATUS_SUCCESS; }