Ben Sander
59833bea80
Set event->_stream on hipHccModuleLaunchKernel path if start/stop used
...
Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.
[ROCm/hip commit: cb60763737 ]
2017-05-30 21:55:46 -05:00
Maneesh Gupta
56bf96c6df
Disable normcdfinvf on __host__
...
Change-Id: If7bfc9826a09eb9b7675ea2a417b9418759b7912
[ROCm/hip commit: 4ff01c971f ]
2017-05-30 15:45:22 +05:30
Ben Sander
b3e01ed74f
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/hip commit: ec7102f461 ]
2017-05-27 16:02:34 -05:00
Ben Sander
e24627aa80
Cleanup hipEvent. (Intermediate checkpoint)
...
Support hipEventDisableSystemRelease flag.
Update test.
Remove stray printf
[ROCm/hip commit: 620eb30691 ]
2017-05-27 16:02:34 -05:00
Ben Sander
715aeef97c
Add isDefaultStream() accessor.
...
Fix code that checked for stream==nullptr after stream had been
resolved to a "true stream".
[ROCm/hip commit: b251d72917 ]
2017-05-26 13:46:48 -05:00
Siu Chi Chan
ef1a8c2788
fix hip_fast_dsqrt* to call a double fp sqrt function
...
[ROCm/hip commit: 1dce01f9bb ]
2017-05-25 23:15:30 -04:00
Ben Sander
b7b7c7b7ac
Remove HIP_NUM_KERNELS_INFLIGHT. (redundant with HCC controls)
...
[ROCm/hip commit: 578d430bb3 ]
2017-05-24 01:03:28 -05:00
Ben Sander
5b9ce41633
Add hipHostMallocCoherent, hipHostMallocNonCoherent
...
Provide per-allocation control over coherent/non-coherent mem.
These overrid the default HIP_COHERENT_HOST_ALLOC setting.
[ROCm/hip commit: 75f691ec2f ]
2017-05-24 00:48:10 -05:00
Ben Sander
07865c3a02
Remove HIP_MAX_QUEUES (replaced with HCC_MAX_QUEUES)
...
[ROCm/hip commit: d0ef9d8462 ]
2017-05-23 23:48:01 -05:00
Ben Sander
97bdbe6590
Use accelerator_scope for create_marker and create_blocking_marker.
...
As optimization when system-scope is not needed.
[ROCm/hip commit: 2b253a48b6 ]
2017-05-23 23:15:45 -05:00
Ben Sander
1e0046f737
Fix trace category for hipHostMalloc
...
[ROCm/hip commit: 7cfe07cff4 ]
2017-05-23 23:15:45 -05:00
Aditya Atluri
6e117234bf
fixed erfinv build error as it is implemented in hcc
...
Change-Id: I27a512147c53f658a63fdf3e90f5e9cfac09ada8
[ROCm/hip commit: 0559fc69e9 ]
2017-05-23 09:32:19 -05:00
Evgeny Mankov
042de3e175
[HIP] [HIPIFY] [FIX] cuModuleLoadDataEx -> hipModuleLoadDataEx
...
https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/81
1. Do not use JIT options on HCC path, call hipModuleLoadData instead.
2. NVCC path is unchanged, to call cuModuleLoadDataEx with all options.
3. Get rid of manual hipification, based on #ifdef #else for NVCC/HIP.
4. Update documentation accordingly.
[ROCm/hip commit: 270f643c9c ]
2017-05-19 17:22:14 +03:00
Ben Sander
324dfb870f
Return precise address for hipHostGetDevicePointer.
...
[ROCm/hip commit: 46030bb2d2 ]
2017-05-17 07:36:06 -05:00
Aditya Atluri
4dbebe0409
changed vector types to make sure it generate proper llvm vector types
...
Change-Id: I6c4616dae137dc4eac35e5827dc5b7f3251e0247
[ROCm/hip commit: 9dceccf136 ]
2017-05-16 21:35:40 -05:00
Ben Sander
f3dcff0906
Fix HIP_TRACE_API so kernel launch only printed when requested.
...
[ROCm/hip commit: 427f8472aa ]
2017-05-16 19:04:25 -05:00
Ben Sander
a55ce5bee4
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/hip commit: 27877f8854 ]
2017-05-16 19:04:25 -05:00
Ben Sander
2cf05ad54b
Add HIP_TRACE_API=4. Only display memory allocation/free apis.
...
[ROCm/hip commit: 0edab14139 ]
2017-05-16 19:04:25 -05:00
Aditya Atluri
62e5cda4af
added gfx900 to hipDeviceProp_t
...
Change-Id: I49e7a32f218926fd55f1c94c5dc2366d6c8ac4ca
[ROCm/hip commit: a43149135e ]
2017-05-12 21:43:34 -05:00
Ben Sander
be423aa034
Remove old USE_ switches no longer needed.
...
[ROCm/hip commit: 0679831384 ]
2017-05-12 16:06:03 -05:00
Ben Sander
b1b71c4c75
Add hipEventDisableSystemRelease flag.
...
[ROCm/hip commit: b306095ac2 ]
2017-05-12 16:06:03 -05:00
Ben Sander
ff72a701b7
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/hip commit: c3ccaa01e5 ]
2017-05-10 17:34:36 -05:00
Ben Sander
ef98415d0e
Fix some typos, add additional guidance for -BSymbolic
...
[ROCm/hip commit: 687809104b ]
2017-05-05 17:29:04 -05:00
Rahul Garg
340cd36e8d
Added support for hipMemcpy2DAsync in HIP/HCC
...
Change-Id: Ia4a8306f2dc1e33a81a7195ec29aef652fcccc4b
[ROCm/hip commit: ec27c695c4 ]
2017-05-03 22:29:12 +05:30
Aditya Atluri
eb68f5d5af
fixed hipFuncSetCacheConfig on rocm path
...
Change-Id: I937a3afbf115edc94a753a0beb2230ed60a6f021
[ROCm/hip commit: a5cb2d40ec ]
2017-04-28 11:53:11 -05:00
Aditya Atluri
a565e85c08
fixed fast math expf and exp10f
...
Change-Id: I73963220f902efebb0a7404c5f8966dffb4c35ca
[ROCm/hip commit: ab2eb420e2 ]
2017-04-26 19:01:10 -05:00
Ben Sander
6f754878eb
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/hip commit: 5a52b79782 ]
2017-04-24 22:30:54 -05:00
Ben Sander
58fd2f29ec
Fix hip debug for case where copyAgent is null (host-to-host)
...
[ROCm/hip commit: 9e41e3c6e2 ]
2017-04-24 22:30:54 -05:00
Ben Sander
ba2f2f56b8
Fix hipMalloc to return error code if allocation fails.
...
[ROCm/hip commit: 59df70662a ]
2017-04-24 22:30:54 -05:00
Aditya Atluri
2b8fbf40a8
fixed build issues with hipPointerGetAttributes
...
Change-Id: I3f5fbc05bdaef720884ba949075928752a070377
[ROCm/hip commit: 59ab3659ee ]
2017-04-24 15:31:07 -05:00
Aditya Atluri
c5840d81ad
changed arguments for hipPointerGetAttributes
...
Change-Id: Ia7a7c4722c1f7d0a23f0e5cc3dd6dea6c01c1fd8
[ROCm/hip commit: 72bcfa438b ]
2017-04-24 15:24:16 -05:00
Ben Sander
b716a7781e
Add integer abs (initial implementation, can be optimized with OCML)
...
Change-Id: I1f568c8c0e2333af1fda4c313dc48ea0c5b6ab00
[ROCm/hip commit: 22f3b91cad ]
2017-04-11 01:16:28 +00:00
Sun, Peng
b4dbf01cdb
update GGL to log launched kernel information
...
Change-Id: Ied0aa6055673c687071b4a579aecd17f0f3f09ce
[ROCm/hip commit: 6d4af1ab1f ]
2017-04-07 14:06:31 -05:00
Ben Sander
cbfc58660e
Finish adding start/stop event support to hipHccModuleLaunchKernel.
...
Change interface to use hipEvent_t rather than hipEvent_t*
Change-Id: I259062dc087a13d51dc27f84e1e8861f332a104d
[ROCm/hip commit: 6656d33f75 ]
2017-04-06 21:02:50 -05:00
sunway513
eaeecbd461
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/hip commit: cfa3155082 ]
2017-04-06 21:02:50 -05:00
Rahul Garg
06b32795c8
mgpu IPC support fix
...
Change-Id: I12e4b2fd189c3658efd3b07defa18ece3853b0eb
[ROCm/hip commit: fc61b793fe ]
2017-04-04 15:51:10 +05:30
Sun, Peng
dd0aa2c9e3
Fix warpSize, for related issue in hipeigen and torch
...
Change-Id: Ic66b24923a363304dca189011869ba7a0a6f8895
[ROCm/hip commit: c82c84949c ]
2017-04-01 15:42:53 -05:00
Sun, Peng
5a6869d450
Add copy right in grid_launch.cpp
...
Change-Id: I7de3fc32f13182b5c41a4e44147b642ba15e8636
[ROCm/hip commit: 27bbeedabb ]
2017-04-01 15:12:00 -05:00
Sun, Peng
9b6b29a535
Add grid_launch.cpp for GGL
...
Change-Id: I87ff9b3f1203d0909f998c96c839f7b321fc3f09
[ROCm/hip commit: 80a99350a3 ]
2017-04-01 14:57:47 -05:00
Aditya Atluri
e66e4298c6
added debug support for HIP sample
...
Change-Id: Ia7265234082039b68114f7421f4dbcb7149d4d2b
[ROCm/hip commit: 3eed9aba5d ]
2017-03-31 14:13:46 -05:00
Aditya Atluri
fcb4331a6a
Fixed copyright and header names
...
Change-Id: Id595c65ea3b7289e87be4c42db5d8a31905a4fdd
[ROCm/hip commit: 1ef7222c3a ]
2017-03-31 12:40:29 -05:00
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
d7b6039544
disabled metadata apis
...
Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144
[ROCm/hip commit: 7ac438ed02 ]
2017-03-28 10:46:31 -05:00
Aditya Atluri
3623535fdf
Re-enabled metadata parsing in HIP
...
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13
[ROCm/hip commit: 7d49dcc030 ]
2017-03-27 11:00:39 -05:00
Rahul Garg
be8d979d08
Fix for MemcpyFromSymbol on HIP/NVCC path
...
Change-Id: Ice38307f72870ae468cbf0861e104f0fa46dfd56
[ROCm/hip commit: 1d18006ab4 ]
2017-03-27 00:35:10 +05:30
Rahul Garg
397088203d
Added support for Primary Context Management APIs
...
Change-Id: I70f91b4492e112dd8e12ecf511fdc18a27944a06
[ROCm/hip commit: ecc0e14cf7 ]
2017-03-26 23:45:54 +05:30
Rahul Garg
1494cb9339
Fix for hipMemcpyFromSymbolAsync
...
Change-Id: I449c669c8f0ef041deaf0a1bc812a71b2f0cc5a6
[ROCm/hip commit: f649c225a7 ]
2017-03-24 10:30:33 +05:30
Aditya Atluri
e60749f3f0
removed llvm dependency and metadata functionality
...
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb
[ROCm/hip commit: 4f4a44c736 ]
2017-03-23 10:16:37 -05:00
Rahul Garg
aa59d4d580
Fix for hipMemcpyFromSymbol (sync)
...
Change-Id: I66afec5443ce904a63ced1fafece5144ca59393e
[ROCm/hip commit: 4395582810 ]
2017-03-21 23:48:04 +05:30
Aditya Atluri
5d1ae81def
added support for lgammaf and lgamma
...
1. Implementation inside HIP
Change-Id: I657263b7276a57c56081d3336fef816b5f204eff
[ROCm/hip commit: d9f0bd25be ]
2017-03-17 18:26:10 -05:00