From c6b09da295197c6d87a9d5269b6971f77f890b5d Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 22 Jan 2019 06:25:43 +0530 Subject: [PATCH] Fixed issue of GPU device losing access to host pinned memory [ROCm/clr commit: f8b399d3b5db0d90c8f040178853d928bca45291] --- projects/clr/hipamd/src/hip_peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_peer.cpp b/projects/clr/hipamd/src/hip_peer.cpp index cffb895c57..12a047e94f 100644 --- a/projects/clr/hipamd/src/hip_peer.cpp +++ b/projects/clr/hipamd/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(peerCtx, thisCtx); + bool isNewPeer = peerCrit->addPeerWatcher(thisCtx, peerCtx); 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());