Commit Graph

12 Commits

Author SHA1 Message Date
Maneesh Gupta 43d07079e9 directed tests: Updated to use new hip include path
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51


[ROCm/clr commit: 5947878247]
2016-10-04 22:20:50 +05:30
Maneesh Gupta e743b311d3 directed tests: Enabled top-level uncategorized tests in HIT
Change-Id: If37cbd00244ebfa0e5bff8362820aa68aaa163f1


[ROCm/clr commit: 9216464861]
2016-09-23 16:15:31 +05:30
Ben Sander 4cf9803703 Peer-to-Peer improvements.
- Bug fix for peer visibility.  Now contexts correctly detect when they can use SDMA for P2P vs staging buffers.
- Interface to new HCC copy_ext function.
- Improve context and peer print /debug options.
- Add comments and usage to hipPeerToPeer_simple test.


[ROCm/clr commit: 944d4eaa18]
2016-09-22 14:21:19 -05:00
Ben Sander 57a4505e77 Fixes for P2P and hipDeviceReset
- devicereset would lose track of default stream and thus subsequent
  synchronization calls might not actually sychronize.
- Also deviceReset now correctly frees streams.
- fix waits in P2P staging copy - first phase (Device0-to-Staging) must
  wait for second phase (Staging to Device1) to finish draining the
  buffer.


[ROCm/clr commit: 6abfa13c34]
2016-04-18 20:49:33 -05:00
Ben Sander 66a6cca54d test update
[ROCm/clr commit: 3301deb07c]
2016-04-17 07:54:39 -05:00
Ben Sander 942509d66e 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/clr commit: c3bd85595d]
2016-04-16 10:18:56 -05:00
Ben Sander f177c8805e add simple negative P2P tests
[ROCm/clr commit: 1acd16eb5d]
2016-04-11 07:58:59 -05:00
Ben Sander 025938b1de 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/clr commit: 9e7efd7c65]
2016-04-11 07:58:59 -05:00
Ben Sander ae8ed57c30 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/clr commit: b039292a8c]
2016-04-11 07:58:58 -05:00
Ben Sander 2d90324c09 Improve P2P test.
Add option to select which device does the copy.


[ROCm/clr commit: b8e17d52dd]
2016-04-11 07:58:58 -05:00
Ben Sander 8b827357e9 Fix simple P2P test, had device ptrs swapped
[ROCm/clr commit: fcd1d37ff7]
2016-04-11 07:58:58 -05:00
Ben Sander a477e65193 Add simple P2P test
[ROCm/clr commit: e14b2cd9c3]
2016-04-11 07:58:58 -05:00