Ben Sander
6aaeed821d
Update tests, add p2p coherency test.
...
[ROCm/clr commit: 15f54fb943 ]
2017-06-03 17:11:34 -05:00
Ben Sander
0ca3262f0a
Add event controls for release fences.
...
Env var : HIP_EVENT_SYS_RELEASE
Event allocation flags : hipEventReleaseToDevice, hipEventReleaseToSystem
(remove hipEventDisableSystemRelease)
Update test for new functionality.
[ROCm/clr commit: 942ec0eff8 ]
2017-05-27 16:02:34 -05:00
Ben Sander
d6e8f5bbdc
Cleanup hipEvent. (Intermediate checkpoint)
...
Support hipEventDisableSystemRelease flag.
Update test.
Remove stray printf
[ROCm/clr commit: c8178c6838 ]
2017-05-27 16:02:34 -05:00
Ben Sander
b4363ffcba
Remove HIP_NUM_KERNELS_INFLIGHT. (redundant with HCC controls)
...
[ROCm/clr commit: 35212632e7 ]
2017-05-24 01:03:28 -05:00
Ben Sander
d302498787
Add hipHostMallocCoherent, hipHostMallocNonCoherent
...
Provide per-allocation control over coherent/non-coherent mem.
These overrid the default HIP_COHERENT_HOST_ALLOC setting.
[ROCm/clr commit: dda70ae514 ]
2017-05-24 00:48:10 -05:00
Ben Sander
ae983e1b09
Remove HIP_MAX_QUEUES (replaced with HCC_MAX_QUEUES)
...
[ROCm/clr commit: d43d57d39c ]
2017-05-23 23:48:01 -05:00
Ben Sander
2e8625a208
Use accelerator_scope for create_marker and create_blocking_marker.
...
As optimization when system-scope is not needed.
[ROCm/clr commit: 2d5b3359c6 ]
2017-05-23 23:15:45 -05:00
Ben Sander
4ac6ac9d1d
Add initial HIP_SYNC_NULL_STREAM=0 mode.
...
This eliminates host-synchronization for null stream. Instead, the
null-stream uses GPU-side events to wait for other streams.
Default is OFF pending additional testing.
Add enhanced null-stream test.
Also refine HIP_TRACE_API.
[ROCm/clr commit: 8bc6ee5932 ]
2017-05-16 19:04:25 -05:00
Ben Sander
ee05975efa
Add HIP_TRACE_API=4. Only display memory allocation/free apis.
...
[ROCm/clr commit: 7e7ba5027f ]
2017-05-16 19:04:25 -05:00
Aditya Atluri
feca2ed0dc
added gfx900 to hipDeviceProp_t
...
Change-Id: I49e7a32f218926fd55f1c94c5dc2366d6c8ac4ca
[ROCm/clr commit: a6dc00f167 ]
2017-05-12 21:43:34 -05:00
Ben Sander
0d3c99eb6e
Remove old USE_ switches no longer needed.
...
[ROCm/clr commit: c7c62dd022 ]
2017-05-12 16:06:03 -05:00
Ben Sander
9b222c0ae4
Add hipEventDisableSystemRelease flag.
...
[ROCm/clr commit: 2c2625cb9e ]
2017-05-12 16:06:03 -05:00
Ben Sander
90e5930923
hipHostMalloc allocation are mapped to all devices by default.
...
Support hipHostMallocPortable flag.
Default flags are hipHostMallocPortable | hipHostMallocMapped.
Also:
-refactor tests to move addCount and addCountReverse into HipTest
namespace.
-test multi-GPU host memory.
[ROCm/clr commit: ff9bed6535 ]
2017-05-10 17:34:36 -05:00
Ben Sander
0e042a1529
Tailor pointer info for src/dst before calling HCC copy routines.
...
HCC sometimes uses the srcPtrInfo or dstPtrInfo to determine the
pointer. Make sure these use the actual pointer and not the base
of the allocation.
[ROCm/clr commit: 3da8e94cbf ]
2017-04-24 22:30:54 -05:00
Ben Sander
eef8282c96
Fix hip debug for case where copyAgent is null (host-to-host)
...
[ROCm/clr commit: dfacfbb641 ]
2017-04-24 22:30:54 -05:00
sunway513
1897ca4a20
Refactor events and add initial event option for hipHccModuleLaunchKernel
...
- Change hipEvent_t to a class.
- Move event logic inside the class.
- Add _type to support Independent, StartCommand, StopCommand events.
StartCommand returns start timestamp from events.
Change-Id: I4ddd694f2645a3ff7170c9111dc1d3e39931ca21
[ROCm/clr commit: f442e975c6 ]
2017-04-06 21:02:50 -05:00
Aditya Atluri
3651cb672a
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/clr commit: 1cead6a4cd ]
2017-03-31 12:11:34 -05:00
Rahul Garg
62c3bd7141
Fix for hipMemcpyFromSymbolAsync
...
Change-Id: I449c669c8f0ef041deaf0a1bc812a71b2f0cc5a6
[ROCm/clr commit: dfa516f804 ]
2017-03-24 10:30:33 +05:30
Rahul Garg
130545d322
Fix for hipMemcpyFromSymbol (sync)
...
Change-Id: I66afec5443ce904a63ced1fafece5144ca59393e
[ROCm/clr commit: e22044de36 ]
2017-03-21 23:48:04 +05:30
pensun
9c9a9bb330
Initial integration with Alex' Generic Grid Launch
...
Change-Id: I559afb80e9e39ec0d119bb3bf3b85ef9e448caf6
[ROCm/clr commit: ad882222b0 ]
2017-03-17 14:59:34 -05:00
Ben Sander
a0932fbcc3
Update hipHostRegister debug and pointerTracker debug and notes
...
[ROCm/clr commit: e43592721e ]
2017-03-11 09:18:27 -06:00
Aditya Atluri
106030f2c6
added new field to hipDeviceProp_t structure gcnArch.
...
1. It is an integer containing gfx values 701, 801, 802, 803
2. On NV path, it is zero
Change-Id: I2b4c7f48981d0214d8c6b1905d2cc85b16203419
[ROCm/clr commit: 9f575721aa ]
2017-03-07 11:24:32 -06:00
Rahul Garg
d410e0f9ca
Removed hsakmt headers
...
Change-Id: I4ffc95d5823489195ebc5638226b49ea2995f603
[ROCm/clr commit: 158cb58c36 ]
2017-03-06 22:37:05 +05:30
Rahul Garg
b4d190a445
Context management related changes in HIP.
...
-
-Contexts across threads are listed under device
-Device reset cleans up all contexts and re-initializes _primaryCtx
Change-Id: Ie1cfbb26d43a8dc6869be3e6ebaf7344ce374643
[ROCm/clr commit: c837b8d713 ]
2017-02-27 15:24:17 +05:30
Aditya Atluri
78f1d54ad6
Added initial support for hipMemcpyFromSymbol. But not working!
...
Change-Id: I48d8c7de4ec9f85c6c942be995fb488a3931f5d7
[ROCm/clr commit: 7ac5017cb9 ]
2017-02-23 11:29:06 -06:00
Aditya Atluri
945526cf77
added runtime api hipMemcpyFromSymbolAsync
...
Change-Id: Ibaf925faf0ba464dd0ed6c5ea74c224c2ce38889
[ROCm/clr commit: 3d348b2d81 ]
2017-02-22 19:16:35 -06:00
Aditya Atluri
f36992067b
fixed symbol memcpy issue
...
Change-Id: I89d7401be51d194bcbf771020ba66e3d3b6a18f8
[ROCm/clr commit: 0d4e6ae60a ]
2017-02-01 17:54:59 -06:00
Ben Sander
b46ee1d193
Add HIP_FAIL_SOC.
...
Fail sub-optimal-copies rather than perform them slowly.
SOC occur on async copy of unpinned memory, or P2P copy between GPUs
that are not peers.
[ROCm/clr commit: 1a24178c78 ]
2017-01-25 21:53:17 -06:00
Ben Sander
ad2ba66ce6
Read HCC_OPT_FLUSH and optimize dispatch accordingly.
...
If HCC is in this mode, we can use less aggressive flushes in some
cases.
[ROCm/clr commit: 2f7a8ec39c ]
2017-01-25 21:50:52 -06:00
Ben Sander
a55362f753
Move core env var processing to env.cpp
...
[ROCm/clr commit: bc809460f5 ]
2017-01-23 22:34:41 -06:00
Ben Sander
57e1efebab
Add debug tips to docs
...
[ROCm/clr commit: 4de3df746c ]
2017-01-23 22:34:41 -06:00
Ben Sander
81488d5d00
Add HIP_SYNC_HOST_ALLOC, HipReadEnv
...
[ROCm/clr commit: db3f4889ca ]
2017-01-19 23:55:24 -06:00
Ben Sander
48bd62db9a
Doc update - describe debug techniques
...
Also tweak sample to remove unneeded HIP_KERNEL_NAME.
Comment update
[ROCm/clr commit: ca1cef4e06 ]
2017-01-19 12:40:45 -06:00
Aditya Atluri
a86633f210
changed copyright year from 2016 to 2017 in src directory
...
Change-Id: Idb97db509b2b4b1656b2df7a14a62ade38c9d574
[ROCm/clr commit: e9ff23e5f9 ]
2017-01-11 18:05:41 -06:00
Ben Sander
13bf4c39cc
Add HIP_MAX_QUEUES feature.
...
Includes some tricky manipulation of the locks for contexts and streams.
issue is that stealing a stream requires we lock the context to
walk the streams to find a victim. To avoid deadlock, we can't
have a stream locked when we lock the context. This implementation
releases the stream lock, then acquires the context and selects the
victim.
A more stable implemenation might be to copy the stream list
from a context so that a lock is not required to walk all streams.
Smart shared_ptr could be used to prevent the streams from being
deallocated during the walk.
[ROCm/clr commit: b29fbf736d ]
2017-01-09 21:02:56 -06:00
Ben Sander
82cf0397c5
First pass at virtualized queue support.
...
Also updated stream debug messages to consistently use trace_helper.
[ROCm/clr commit: c9f5fe34e6 ]
2017-01-09 21:02:53 -06:00
Ben Sander
9d22c4f727
tolerate spaces in hip args
...
[ROCm/clr commit: 49d1477b9d ]
2017-01-09 20:57:13 -06:00
Rahul Garg
0aabd435a9
Added state for hipDevice.
...
Change-Id: Idbc3c04cd054a01b634856a1e0a23ff172e991aa
[ROCm/clr commit: 090eadd0bd ]
2017-01-09 23:54:01 +05:30
Ben Sander
4ad8744139
Support size_t in memset kernel.
...
Add disable for HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU
Remove one copy of completion_future in memset.
[ROCm/clr commit: fd5b0c68b1 ]
2016-12-22 12:25:09 -06:00
Ben Sander
693bfc85bc
Increment API sequence number.
...
Change name to tls_tidInfo
[ROCm/clr commit: cf338d716b ]
2016-12-21 15:30:36 -06:00
Rahul Garg
7121e56949
Fix for HCSWAP-67
...
Change-Id: I0b2ce5ab933237947fb41d89769db3da16e5be6a
Conflicts:
src/hip_hcc.cpp
[ROCm/clr commit: 4988975b59 ]
2016-12-19 16:19:51 +05:30
Ben Sander
a3064807b5
Remove USE_DISPATCH_HSA_KERNEL=0 path.
...
[ROCm/clr commit: 06d382bc6d ]
2016-12-17 07:22:56 -06:00
pensun
70f0a2f43b
HIP resource leaks fix from Jack
...
Change-Id: I93f3ad7cb94ff1cba1577bd8acc90e826693d12e
[ROCm/clr commit: 4cb1579d4a ]
2016-12-05 20:21:33 -06:00
Maneesh Gupta
136d220c10
Revert "Enable USE_DISPATCH_HSA_KERNEL."
...
This reverts commit bbd9d98af7 .
[ROCm/clr commit: ac93376c26 ]
2016-12-05 16:55:26 +05:30
Ben Sander
bbd9d98af7
Enable USE_DISPATCH_HSA_KERNEL.
...
Optimize hipLaunchModule dispatch latency.
[ROCm/clr commit: f8bcbe8680 ]
2016-12-04 00:13:19 -06:00
Ben Sander
bccb897f84
Add additional controls for forcing serialization and blocking.
...
Move HIP_COHERENT_HOST_ALLOC so it is read once at init time.
Add HIP_LAUNCH_BLOCKING_KERNELS, HIP_API_BLOCKING.
Update docs on debug and chicken bits.
Conflicts:
src/hip_hcc.cpp
[ROCm/clr commit: 783ac156ce ]
2016-12-02 18:03:59 -06:00
pensun
946e9b4163
Change to use produce device name by default
...
Change-Id: Ie2cee2a2e94a08b5874a2f5abee5d1ab6c9fdf47
[ROCm/clr commit: 504fcaf786 ]
2016-11-29 11:34:06 -06:00
Ben Sander
68f1a627e0
Add more debug info
...
[ROCm/clr commit: a504df955e ]
2016-11-26 08:56:02 -06:00
Ben Sander
e2f024fc55
Improve docs in some places
...
Change-Id: If31e84fbf0c8595ca72edb842dce7ce47783579b
[ROCm/clr commit: 9db93a1b96 ]
2016-11-23 08:16:18 -06:00
Ben Sander
2e63b780f4
Improve debug capabilities.
...
Print TID mapping at init when HIP_TRACE_API=1.
Print base host/dev info from tracker during copy.
Change-Id: I84e26d7b801567e5a91baad36126fb590920ec87
[ROCm/clr commit: 111b57ddd0 ]
2016-11-23 08:16:18 -06:00