Refactor copy and P2P logic.

Prefer use of source-engine for DMA copies, even if user submits copy
in a stream attached to a different device.
The stream is now used only for synchronization, and HIP
makes the most optimal decision for which engine to perform the
copy - typically the source copy engine.

HIP now makes decision on which engine should perform the copy
and passes this to HCC using new apis.
HIP has additional information about peer
visibility and will make a decision which agent should perform
the copy .

Change-Id: I0cf4cfebeae256e6ca795f08a7ed7130f4857d1f


[ROCm/hip commit: ced9d72d94]
This commit is contained in:
Ben Sander
2016-11-10 10:49:44 -06:00
parent 67a305ec9e
commit e0ef3bb319
5 changed files with 134 additions and 173 deletions
+1 -4
View File
@@ -1,4 +1 @@
:set tabstop=4
:set shiftwidth=4
:set expandtab
:set smartindent
:set makeprg=make\ -C\ build.hcc-LC.db