From 099f8d61ddf683532472e8f9bfabf9482bbf9186 Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Mon, 2 Nov 2020 08:13:23 -0500 Subject: [PATCH] SWDEV-258573 : fix for OCLP2PBuffer test failure Change-Id: I363d4fb2bb94d9bc03e96844d31dec7ef9b2ce33 --- rocclr/platform/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/platform/command.cpp b/rocclr/platform/command.cpp index e0e5ecd864..76fe6d140a 100644 --- a/rocclr/platform/command.cpp +++ b/rocclr/platform/command.cpp @@ -605,7 +605,7 @@ bool CopyMemoryP2PCommand::validateMemory() { if (srcDevices.size() == 1 && dstDevices.size() == 1) { device::Memory* mem2 = memory2_->getDeviceMemory(*dstDevices[0]); if (!mem2->getAllowedPeerAccess()) { - void* dst = mem2->owner()->getSvmPtr(); + void* dst = reinterpret_cast(mem2->virtualAddress()); bool status = dstDevices[0]->deviceAllowAccess(dst); mem2->setAllowedPeerAccess(true); return status;