For P2P, use the peer list when allocating Device memory or pinned host.

Each new allocation is automatically mapped into the address space of
all enabled peers.


[ROCm/hip commit: 41f7317fb5]
This commit is contained in:
Ben Sander
2016-04-06 16:44:31 -05:00
والد c5240bd079
کامیت 84b5016a79
6فایلهای تغییر یافته به همراه59 افزوده شده و 38 حذف شده
+4 -1
مشاهده پرونده
@@ -442,9 +442,12 @@ void ihipDevice_t::locked_reset()
// Reset and remove streams:
crit->streams().clear();
#if USE_PEER_TO_PEER==2
// remove peer mappings to this device? Call removePeer on all other devices?
#endif
// Reset and release all memory stored in the tracker:
am_memtracker_reset(_acc);
};