Граф коммитов

549 Коммитов

Автор SHA1 Сообщение Дата
Ben Sander daae691cdb Enable HCC_OPT_FLUSH=1.
Requires appropriate HCC with this support   :
commit 38e392b517a46a09a3b1c8f388e6a0db3741c510


[ROCm/clr commit: c2baa4f6e6]
2017-06-07 00:15:05 -05:00
Ben Sander d1fe7f1683 Enable HIP_SYNC_NULL_STREAM=0 optimization.
[ROCm/clr commit: 344b6cb0c0]
2017-06-05 08:50:41 -05:00
Ben Sander 7237ed04f3 Fix HIP_SYNC_NULL_STREAM=0 mode.
- Fix null-stream sync
- hipStreamDestroy of null stream returns hipErrorInvalidResourceHandle
- Update documentation.
- Add tests for null stream sync, hipEventElapsedTime.
- Rename internal enum hipEventStatusRecorded to hipEventStatusComplete
- refactor hipStreamWaitEvent to streamline control-flow


[ROCm/clr commit: 823281dcba]
2017-06-05 08:50:22 -05:00
Ben Sander 6aaeed821d Update tests, add p2p coherency test.
[ROCm/clr commit: 15f54fb943]
2017-06-03 17:11:34 -05:00
Siu Chi Chan 8514cf513a fix atomicCAS:remove load for the return value after CAS
[ROCm/clr commit: 969931b1ce]
2017-05-31 15:20:19 -04:00
Ben Sander 81354999e8 Set event->_stream on hipHccModuleLaunchKernel path if start/stop used
Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.


[ROCm/clr commit: 6cc5dc0326]
2017-05-30 21:55:46 -05:00
Maneesh Gupta 06cdafe311 Disable normcdfinvf on __host__
Change-Id: If7bfc9826a09eb9b7675ea2a417b9418759b7912


[ROCm/clr commit: 445012d451]
2017-05-30 15:45:22 +05:30
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 d9587ae2f0 Add isDefaultStream() accessor.
Fix code that checked for stream==nullptr after stream had been
resolved to a "true stream".


[ROCm/clr commit: b2b620c12b]
2017-05-26 13:46:48 -05:00
Siu Chi Chan 6c3a05ac5b fix hip_fast_dsqrt* to call a double fp sqrt function
[ROCm/clr commit: a3595d2e8c]
2017-05-25 23:15:30 -04: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 0cde8e5db4 Fix trace category for hipHostMalloc
[ROCm/clr commit: ca07615c37]
2017-05-23 23:15:45 -05:00
Aditya Atluri e7813b1933 fixed erfinv build error as it is implemented in hcc
Change-Id: I27a512147c53f658a63fdf3e90f5e9cfac09ada8


[ROCm/clr commit: 490355203b]
2017-05-23 09:32:19 -05:00
Evgeny Mankov 052f630bd3 [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/clr commit: ae9f14ef9c]
2017-05-19 17:22:14 +03:00
Ben Sander 8c50285d30 Return precise address for hipHostGetDevicePointer.
[ROCm/clr commit: ee37a31799]
2017-05-17 07:36:06 -05:00
Aditya Atluri 0318e91450 changed vector types to make sure it generate proper llvm vector types
Change-Id: I6c4616dae137dc4eac35e5827dc5b7f3251e0247


[ROCm/clr commit: 93fa174900]
2017-05-16 21:35:40 -05:00
Ben Sander c098221a46 Fix HIP_TRACE_API so kernel launch only printed when requested.
[ROCm/clr commit: fad9104b5f]
2017-05-16 19:04:25 -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 fa1ac559cb Fix some typos, add additional guidance for -BSymbolic
[ROCm/clr commit: 9a026b62a8]
2017-05-05 17:29:04 -05:00
Rahul Garg 9739d5d60f Added support for hipMemcpy2DAsync in HIP/HCC
Change-Id: Ia4a8306f2dc1e33a81a7195ec29aef652fcccc4b


[ROCm/clr commit: b136e80a45]
2017-05-03 22:29:12 +05:30
Aditya Atluri 6dccc18fa0 fixed hipFuncSetCacheConfig on rocm path
Change-Id: I937a3afbf115edc94a753a0beb2230ed60a6f021


[ROCm/clr commit: 208bdbbcbb]
2017-04-28 11:53:11 -05:00
Aditya Atluri c662b426dc fixed fast math expf and exp10f
Change-Id: I73963220f902efebb0a7404c5f8966dffb4c35ca


[ROCm/clr commit: f368271872]
2017-04-26 19:01:10 -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
Ben Sander 05c136e7b8 Fix hipMalloc to return error code if allocation fails.
[ROCm/clr commit: fb7eee01ff]
2017-04-24 22:30:54 -05:00
Aditya Atluri 8d9e22c975 fixed build issues with hipPointerGetAttributes
Change-Id: I3f5fbc05bdaef720884ba949075928752a070377


[ROCm/clr commit: 1f532b06f6]
2017-04-24 15:31:07 -05:00
Aditya Atluri 119f5a1e67 changed arguments for hipPointerGetAttributes
Change-Id: Ia7a7c4722c1f7d0a23f0e5cc3dd6dea6c01c1fd8


[ROCm/clr commit: 85c189c846]
2017-04-24 15:24:16 -05:00
Ben Sander ab55162481 Add integer abs (initial implementation, can be optimized with OCML)
Change-Id: I1f568c8c0e2333af1fda4c313dc48ea0c5b6ab00


[ROCm/clr commit: 8bd34535b4]
2017-04-11 01:16:28 +00:00
Sun, Peng 9fd6c7179d update GGL to log launched kernel information
Change-Id: Ied0aa6055673c687071b4a579aecd17f0f3f09ce


[ROCm/clr commit: f699e02715]
2017-04-07 14:06:31 -05:00
Ben Sander dc9e957a36 Finish adding start/stop event support to hipHccModuleLaunchKernel.
Change interface to use hipEvent_t rather than hipEvent_t*

Change-Id: I259062dc087a13d51dc27f84e1e8861f332a104d


[ROCm/clr commit: e9eaadd135]
2017-04-06 21:02:50 -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
Rahul Garg a14593b331 mgpu IPC support fix
Change-Id: I12e4b2fd189c3658efd3b07defa18ece3853b0eb


[ROCm/clr commit: 4906cd5f0d]
2017-04-04 15:51:10 +05:30
Sun, Peng 0e23f09b47 Fix warpSize, for related issue in hipeigen and torch
Change-Id: Ic66b24923a363304dca189011869ba7a0a6f8895


[ROCm/clr commit: a7d7797781]
2017-04-01 15:42:53 -05:00
Sun, Peng 72d4fe0213 Add copy right in grid_launch.cpp
Change-Id: I7de3fc32f13182b5c41a4e44147b642ba15e8636


[ROCm/clr commit: 9762667431]
2017-04-01 15:12:00 -05:00
Sun, Peng a8708e7bdd Add grid_launch.cpp for GGL
Change-Id: I87ff9b3f1203d0909f998c96c839f7b321fc3f09


[ROCm/clr commit: ae8448a9af]
2017-04-01 14:57:47 -05:00
Aditya Atluri 28c8d15412 added debug support for HIP sample
Change-Id: Ia7265234082039b68114f7421f4dbcb7149d4d2b


[ROCm/clr commit: 81d3725a16]
2017-03-31 14:13:46 -05:00
Aditya Atluri e3d3cacebc Fixed copyright and header names
Change-Id: Id595c65ea3b7289e87be4c42db5d8a31905a4fdd


[ROCm/clr commit: 3859f59189]
2017-03-31 12:40:29 -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
Aditya Atluri bdaf6a3aaa disabled metadata apis
Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144


[ROCm/clr commit: 4e5861df7a]
2017-03-28 10:46:31 -05:00
Aditya Atluri c3f1a37c28 Re-enabled metadata parsing in HIP
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13


[ROCm/clr commit: abf369049b]
2017-03-27 11:00:39 -05:00
Rahul Garg 30eb97392a Fix for MemcpyFromSymbol on HIP/NVCC path
Change-Id: Ice38307f72870ae468cbf0861e104f0fa46dfd56


[ROCm/clr commit: 41f0ebebf0]
2017-03-27 00:35:10 +05:30