Aditya Atluri
ccf799c453
added new api hipHccModuleLaunchKernel
...
1. hipHccModuleLaunchKernel is same as hipModuleLaunchKernel with OpenCL workitem model
2. Added copy right
3. Fixed header naming
Change-Id: I6a7c35a3566e2f8d3f5056613e34193775d4b236
[ROCm/hip commit: b9091ba818 ]
2017-03-31 12:11:34 -05:00
Aditya Atluri
5de29029cd
changed copyright year from 2016 to 2017 in src directory
...
Change-Id: Idb97db509b2b4b1656b2df7a14a62ade38c9d574
[ROCm/hip commit: 73fcce26f9 ]
2017-01-11 18:05:41 -06:00
Ben Sander
1c7e71e1b3
Add option to deny peer access.
...
Also fix test.
Change-Id: I1b247f6c4271442b008e560669bca4daf8eb94c7
[ROCm/hip commit: 1e5515ee9f ]
2016-11-10 23:12:48 -06:00
Ben Sander
e0ef3bb319
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 ]
2016-11-10 23:12:48 -06:00
Ben Sander
1e5540e07f
Add debug for Peer APIs. Enable PeerMemcpy APIs by default.
...
Change-Id: I46e39a9e7b07686a78484c1f3b5495b08e052fbb
[ROCm/hip commit: 3f0a2b8dc1 ]
2016-11-04 08:51:16 -05:00
Ben Sander
c11b6f511b
Move some internal headers from "include/hip/" to src.
...
Change-Id: I7041bd5c803d9318979f4a7c1d658445c614691e
[ROCm/hip commit: 9315ac1a29 ]
2016-10-18 22:27:16 -05:00
Maneesh Gupta
dd60b971d1
src/*: Update copyright header
...
Change-Id: I455f5d0d12fe9cb39a3ba873bd22b4c25ed07cbf
[ROCm/hip commit: 8471682f26 ]
2016-10-15 22:55:22 +05:30
Maneesh Gupta
fc58842fcf
Move include/* to include/hip/*
...
Change-Id: I7a7b2839b4df59c7a4c503550f99fdc9e45c0f54
[ROCm/hip commit: b951cc99ed ]
2016-10-04 22:17:18 +05:30
Ben Sander
9a067341a7
Fix HIP_INIT_API and ihipLogStatus calls
...
[ROCm/hip commit: ff28ff1509 ]
2016-09-22 14:21:19 -05:00
Ben Sander
d71686d4f5
Remove USE_AV_COPY, USE_PEER_TO_PEER fallback paths.
...
Change-Id: I9c20173e62029c4caebabc98784c6d7697758e4f
[ROCm/hip commit: e843d8cb51 ]
2016-09-22 14:21:19 -05:00
Rahul Garg
376cc78852
Addition of hipCtxEnablePeerAccess and hipCtxDisablePeerAccess functions
...
Change-Id: I381c8cbbde17eae7d9bb5d4cb1596cebf4bda039
[ROCm/hip commit: 524eb687d3 ]
2016-08-26 13:51:33 +05:30
Ben Sander
db8c7e97bd
Add initial context implementation.
...
APIs: hipInit, hipCtxCreate.
Track TLS default ctx. Set deviceID now changes the ctx.
Add first context test.
Change-Id: If1cb9989b5a04a36147e25e84904336c7b6f3d88
[ROCm/hip commit: 8f402132ba ]
2016-08-08 17:49:02 -05:00
Ben Sander
57df8a3967
Split ihipCtx_t into ihipCtx_t and ihipDevice_t .
...
Major change to existing code base.
Ctx holds streams, enables peers, and flags.
Device holds accelerator, hsa-agent, device props.
Add hipCtx_t.
Add peer APIs that accept hipCtx_t (in addition to deviceId)
Compiles and passes directed tests.
Change-Id: Iddab1eb9edbf90caad2ef5959c6b811d658197f1
[ROCm/hip commit: cfdacab32f ]
2016-08-08 11:55:57 -05:00
Ben Sander
ee356ad0d4
Change Device->Ctx
...
Change ihipDevice_t -> ihipCtx_t (new)
Change ihipGetTlsDefaultDevice->ihipGetTlsDefaultCtx
Some other changes from device->ctx where appropriate.
Change-Id: I5c4ae93b2fd42c6303aa23d748eb166b7431925d
[ROCm/hip commit: 2dc3d3238b ]
2016-08-07 21:47:12 -05:00
Aditya Atluri
1eeaa83cb2
removed warnings
...
[ROCm/hip commit: 3f4f6c4d41 ]
2016-04-30 12:11:04 -05:00
Ben Sander
95e4be12de
fix direction of peer enable/disable APIs
...
- Enable(peerId) makes memory physically located on peer visible to
current device.
[ROCm/hip commit: 74a7dee58f ]
2016-04-17 07:38:05 -05:00
Ben Sander
262b69f387
Merge branch 'privatestaging' into p2p
...
Conflicts:
include/hcc_detail/hip_hcc.h
src/hip_hcc.cpp
[ROCm/hip commit: 49cc5aec91 ]
2016-04-17 06:46:52 -05:00
Aditya Atluri
0b2dfa28a5
Added copyright
...
[ROCm/hip commit: 8412e9cbba ]
2016-04-16 17:21:53 -05:00
Aditya Atluri
6cd86531b3
Corrected Memcpydefault
...
[ROCm/hip commit: 8dc1bdcbe6 ]
2016-04-16 17:10:13 -05:00
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
b174e8bba7
Clean up disable.
...
Add USE_HCC_LOCK (disabled)
Disable USE_PEER_TO_PEER.
[ROCm/hip commit: b0529e04f1 ]
2016-04-11 09:09:36 -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
80e2e37c51
Remove stray debug msgs, hipInfo don't print self as peer.
...
[ROCm/hip commit: d89539d40f ]
2016-04-11 07:58:58 -05:00
Ben Sander
69a9feb1fb
fix bugs in P2P implementation
...
- addPeers polarity reversed, would never add.
- check allow_access return value, pipe error to hipMalloc.
[ROCm/hip commit: fb31eaf07b ]
2016-04-11 07:58:58 -05:00
Ben Sander
216c9a0c16
Use HCC get_is_pool, add USE_PEER_TO_PEER level 2, 3.
...
[ROCm/hip commit: 7a11a2178d ]
2016-04-11 07:58:58 -05:00
Ben Sander
06e2dbd128
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: 813b063888 ]
2016-04-11 07:58:58 -05:00
Ben Sander
ac11c83d76
P2P checkpoint.
...
Maintain enabled peer tables for each device.
[ROCm/hip commit: f2aa470f7f ]
2016-04-11 07:58:58 -05:00
Ben Sander
56d684e2fe
Checkpoint initial peer2peer implementation.
...
[ROCm/hip commit: 69f2469cbb ]
2016-04-11 07:58:58 -05:00
Aditya Atluri
6aa83a8a32
added CR and hipsetdeviceflags func
...
[ROCm/hip commit: c5ec73736d ]
2016-03-24 07:04:01 -05:00
Aditya Atluri
702672c3df
Split files based on functionality and changed cmake file
...
[ROCm/hip commit: 794007c3e8 ]
2016-03-24 04:57:30 -05:00