Fixed issue of GPU device losing access to host pinned memory

Αυτή η υποβολή περιλαμβάνεται σε:
Rahul Garg committed 2019-01-22 06:25:43 +05:30
1 γονέας e4a66e8471
υποβολή bab3a94b33
1 file changed
+1 -1
+1 -1
Προβολή Αρχείου
@@ -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());