diff --git a/rocclr/device/rocm/rocmemory.cpp b/rocclr/device/rocm/rocmemory.cpp index 8fba64ebc1..e9c6f2ba81 100644 --- a/rocclr/device/rocm/rocmemory.cpp +++ b/rocclr/device/rocm/rocmemory.cpp @@ -621,7 +621,7 @@ Buffer::~Buffer() { if (owner()->ipcShared()) { // Detach the memory from HSA - auto hsa_status = hsa_amd_ipc_memory_detach(owner()->getHostMem()); + auto hsa_status = hsa_amd_ipc_memory_detach(owner()->getSvmPtr()); if (hsa_status != HSA_STATUS_SUCCESS) { LogPrintfError("HSA failed to detach memory with status: %d \n", hsa_status); }