Sourabh Betigeri
4ee227146e
SWDEV-274727 - Disabling tests temporarily
...
Change-Id: I695daebe15f592afdfee8e4efe4d8966b6e9922a
[ROCm/hip commit: 8f67e24cbd ]
2021-03-30 13:02:19 -04:00
Sourabh Betigeri
313856c6ea
SWDEV-274727 - The callback associated with the event was being processed after the event is destroyed. Commit after resolving merge conflict.
...
Change-Id: Ia7383c83318ca0c2a4f21f7aaf22b1cebd828cf0
[ROCm/hip commit: 4223d3ecb4 ]
2021-03-18 15:08:58 -04:00
Tao Sang
15519dd555
SWDEV-273943 - Enable runtimeApi.event dtest
...
Add device_id_ in hip::event to match cuda behaviour in
hipEventQuery() and hipEventRecord().
Enable hipEventElapsedTime test on AMD platform.
Workarround sporadic crash of hipEventIpc test due to
some bug of event ipc.
Add missing hipEventDestroy() in some event tests.
Fix some logic code errors.
Fix typo in comment.
Change-Id: I9ec74c475161b3e31df48d193449023e921f2924
[ROCm/hip commit: 38b0c952a6 ]
2021-03-16 17:12:08 -04:00
DURGESH KROTTAPALLI
49be095157
SWDEV-238517 - Enhancing hip unit tests
...
[dtest] Tests for hipEvent related APIs
Added Negative scenarios for hipEvent related APIs
1. Verifying all hipEvent related APIs by passing nullptr.
2. Pass illegal/unknown flag to hipEventCreateWithFlags API
Change-Id: Ia0a24065d16fe0f5ee28a88e280c25c1be0c3590
[ROCm/hip commit: 44753583e7 ]
2021-02-24 06:29:26 -05:00
Tao Sang
a4baf5b238
SWDEV-272088 - Fix runtimeApi/event/hipEventElapsedTime issue
...
runtimeApi/event/hipEventElapsedTime will report invalid resource error
on cuda due to wrong calling sequence. The fix will arrange the calling
in right sequence.
Change-Id: I3db28a962888566ea135e3cbdefa68d373e2d369
[ROCm/hip commit: ce4ba590fe ]
2021-02-23 12:36:40 -05:00
Rahul Garg
8c0ea0d8a3
Add IPC Events support
...
Change-Id: Iac2bf3d5e1d9a993bebbb066c20d300d6f05558b
[ROCm/hip commit: c307baf3da ]
2021-01-08 20:09:26 +00:00
Tao Sang
c618b6aeff
Remove hip-hcc codes: Part three
...
1.Rename include/hip/hcc_detail/ as include/hip/amd_detail/
2.Rename include/hip/nvcc_detail/ as include/hip/nvidia_detail/
3.Create __HIP_PLATFORM_AMD__ to replace __HIP_PLATFORM_HCC__
4.Create __HIP_PLATFORM_NVIDIA__ to replace __HIP_PLATFORM_NVCC__
After hcc_detail, nvcc_detail, __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__
have been removed from upstream, they will be removed from hip runtime.
Change-Id: I1ae457effd739d6c25bca203c1724b026be21fce
[ROCm/hip commit: c2adc70d4d ]
2021-01-05 10:39:31 -05:00
agodavar
13436a7e1f
cmake hip-rocclr as default build,change HIP_PLATFORM to amd|nvidia
...
Change-Id: I59d2e15b297b6ca2d5eee1a6dee642bdb01a3839
[ROCm/hip commit: d10124e1d7 ]
2020-10-21 07:26:14 -04:00
Payam
0c8b343931
name change vdi to rocclr
...
Change-Id: I06d198bbb4a499e153b290b73a92afed3553b252
[ROCm/hip commit: c5f76c3de3 ]
2020-05-06 09:14:30 -04:00
root
2061d19165
Merge master into amd-master-next
...
Change-Id: I3fc1dc0c860d627053537581e75561e8a7efe327
[ROCm/hip commit: 2689246de6 ]
2020-04-26 22:19:37 +00:00
Maneesh Gupta
8e137a6ec1
Merge in the rocclr based hip runtime ( #2032 )
...
* Merge master-next changes in master (include vdi development in master branch)
[ROCm/hip commit: a0b5dfd625 ]
2020-04-23 09:12:06 -07:00
Jeff Daily
e428d45eb2
add IPC event support ( #1996 )
...
[ROCm/hip commit: ef596cd088 ]
2020-04-17 10:31:22 +05:30
Sarbojit2019
e10e59a8c0
hipEventElapsedTime should respect device ( #1992 )
...
Fixes SWDEV-228636.
Also added a unit test to verify this.
[ROCm/hip commit: b80a2c3966 ]
2020-04-06 15:38:25 +05:30
Evgeny Mankov
abef353b5b
[HIP] Clean-up deprecated HIP error codes
...
hipErrorMemoryAllocation -> hipErrorOutOfMemory
hipErrorInitializationError -> hipErrorNotInitialized
hipErrorMapBufferObjectFailed -> hipErrorMapFailed
hipErrorInvalidResourceHandle -> hipErrorInvalidHandle
[ROCm/hip commit: 4921678b6c ]
2019-12-23 17:01:35 +03:00
Maneesh Gupta
fa07d40cdd
[hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
...
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074
[ROCm/hip commit: 9f2d1453fb ]
2019-05-09 09:59:18 +05:30
Maneesh Gupta
c4a93adb74
Replace hipLaunchKernel -> hipLaunchKernelGGL
...
Change-Id: I4d99009e1199811d417becf1e1b934ec4d4e30be
[ROCm/hip commit: 52e320f396 ]
2018-10-17 14:32:25 +05:30
Saleel Kudchadker
eb251f6a4e
Fix record_event and hipStreamSync2 tests. The test should expect null stream to complete if synchrionize is called as per the spec
...
[ROCm/hip commit: 1daee67eb6 ]
2018-08-31 12:54:23 -07:00
Maneesh Gupta
4f42ee762d
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
[ROCm/hip commit: 1ba06f63c4 ]
2018-03-12 11:29:03 +05:30
Alex Voicu
70a41e7dac
This switches HIP from its currently convoluted macro + pfe based dispatch mechanism to a more natural one partially based on the existing module API. The basic idea is that HCC will always correctly emit __global__ functions: as empty-bodied stubs, on host, and as kernels, on device. It then becomes trivial to obtain the mangled name on host, at dispatch, from the function's address, and then to use the mangled name to retrieve the kernel. This should address all problems stemming from serialisation, dubious mismatches due to the manufactured functor, macro-isms et al. It also immediately enables support for generalised globals as a consequence of that being available in the module API. Finally, it will make debug much easier, since the actual names of the __global__ functions will automatically be used in traces etc. One detail is that due to how dispatch works now (hipLaunchKernel and hipLaunchKernelGGL are themselves variadic function templates which deduce the function type of the callee), in certain cases it may be necesssary to insert explicit casts to ensure that the variadic argument list selects a viable overload - this can be observed in some unit tests. Eventually we may be able to remove this limitation, but for now it does not appear terribly onerous. The code is not extremely HIPpie, nor is it fully optimised, but rather is intended as a starting point for the HIP team to make its own.
...
[ROCm/hip commit: c2482d1255 ]
2017-11-01 15:09:59 +00:00
Rahul Garg
1d4213af20
Enable hipStreamSync2 and record_event dtests
...
[ROCm/hip commit: 4b98572f47 ]
2017-08-24 15:51:58 +05:30
Maneesh Gupta
3e230cfcc6
[dt] temporarily disable broken tests
...
Change-Id: I3ce23e410dc36e06d460263d768412f8368a6699
[ROCm/hip commit: b3a9e202b1 ]
2017-07-18 11:17:02 +05:30
Ben Sander
445042f916
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/hip commit: 39c18e5e5f ]
2017-06-05 08:50:22 -05:00
Ben Sander
f3950e0748
Update tests.
...
Fix some NVCC issues.
Add hipStreamSync2, record_event tests.
[ROCm/hip commit: 8ce6d17983 ]
2017-06-04 20:18:37 -05:00
Aditya Atluri
6d5992d445
changed __global__ attribute
...
1. Moved around tests and added them to HIT
Change-Id: I5d75280c42a5af852670ebabc7305ee56721ec7b
[ROCm/hip commit: 5e3d63c0a3 ]
2017-02-03 10:53:36 -06:00