Commit Graph

7 Commits

Author SHA1 Message Date
Ben Sander d4f449a95e P2P Update.
- add P2P staging buffer copy.
- If copy device does not have sufficient access permissions, fall back
  to staging buffer.
- improve docs for which copy device is used.


[ROCm/hip commit: dcabc9dbf7]
2016-04-16 10:18:56 -05:00
Ben Sander c8c269136c add simple negative P2P tests
[ROCm/hip commit: 4a0c0479d4]
2016-04-11 07:58:59 -05:00
Ben Sander c964e3c75a P2p checkpoint.
- set USE_PEER_TO_PEER=3 (requires HCC "am_memtracker_update_peers")
- when enabling peer, turn it on for previously allocated memory.
- hipDeviceCanAccessPeer is no longer self-ware (self does not qualify
  as a peer)
- device peerlist always includes self, so when we call allow_access
  we never remove self access.
- hipDeviceReset() removes old peer mappings.


[ROCm/hip commit: 83f0de7806]
2016-04-11 07:58:59 -05:00
Ben Sander a563ec9700 Improve P2P test.
- Ensure proper device is set before each command.

- Add command line switches:
    +bool p_memcpyWithPeer = false; // use the peer device for the P2P copy
    +bool p_mirrorPeers = false; // in addition to mapping current to peer
            space, map peer to current space.
    +int  p_peerDevice = -1;  // explicly specify which peer to use, else
use p_gpuDevice + 1.


[ROCm/hip commit: c2d37b4bbd]
2016-04-11 07:58:58 -05:00
Ben Sander 07de649833 Improve P2P test.
Add option to select which device does the copy.


[ROCm/hip commit: 40d24f67f5]
2016-04-11 07:58:58 -05:00
Ben Sander fc4af30e16 Fix simple P2P test, had device ptrs swapped
[ROCm/hip commit: eeb41955e4]
2016-04-11 07:58:58 -05:00
Ben Sander 00c7d8dbbc Add simple P2P test
[ROCm/hip commit: 71dac8e37c]
2016-04-11 07:58:58 -05:00