Merge pull request #873 from gargrahul/fix_p2p_host_memory_access

Fixed issue of GPU device losing access to host pinned memory

[ROCm/hip commit: bcd414c77c]
Tá an tiomantas seo le fáil i:
Maneesh Gupta údaraithe agus GitHub tiomanta 2019-01-22 10:53:18 +05:30
2 tuismitheoirí 6aae4797fb 7aafa0da9f
tiomantas 0ef01d4436
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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());