From 089077a8b75525758ed8b9307e66d40c209eedf6 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Mon, 4 Feb 2019 22:45:13 -0800 Subject: [PATCH] Revert "Fixed issue of GPU device losing access to host pinned memory" [ROCm/hip commit: 3120db15e46c13699098fc909007b0f26dc316f8] --- projects/hip/src/hip_peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/src/hip_peer.cpp b/projects/hip/src/hip_peer.cpp index 12a047e94f..cffb895c57 100644 --- a/projects/hip/src/hip_peer.cpp +++ b/projects/hip/src/hip_peer.cpp @@ -129,7 +129,7 @@ hipError_t ihipEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags) { LockedAccessor_CtxCrit_t peerCrit(peerCtx->criticalData()); // Add thisCtx to peerCtx's access list so that new allocations on peer will be made // visible to this device: - bool isNewPeer = peerCrit->addPeerWatcher(thisCtx, peerCtx); + bool isNewPeer = peerCrit->addPeerWatcher(peerCtx, thisCtx); if (isNewPeer) { tprintf(DB_MEM, "device=%s can now see all memory allocated on peer=%s\n", thisCtx->toString().c_str(), peerCtx->toString().c_str());