Maneesh Gupta
46ddefedee
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
[ROCm/clr commit: 9e47fccc89 ]
2018-03-12 11:29:03 +05:30
Ben Sander
c9f031bc72
Temporarily disable a couple tests pending some HCC work
...
[ROCm/clr commit: 721d862089 ]
2017-12-01 21:46:28 +00:00
Alex Voicu
b738633bcb
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/clr commit: 28f87f7d2e ]
2017-11-01 15:09:59 +00:00
Ben Sander
b45217fef0
Refactor hipStreamWaitEvent
...
- Null streams use same flow as non-null.
- Add HIP_SYNC_STREAM_WAIT
- Resolve null stream.
[ROCm/clr commit: ed8c3ba7e7 ]
2017-08-31 03:00:14 +00:00
Ben Sander
9442c6dd2d
Updates so hip compiles on CUDA.
...
[ROCm/clr commit: 8dc968f036 ]
2017-05-27 15:55:07 -05:00
Ben Sander
59e07db865
Expand test to cover copy followed by event sync
...
[ROCm/clr commit: 92bd54d7b3 ]
2017-05-23 23:15:45 -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
501d0b3161
Fix hipStreamWaitEvent for single GPU.
...
[ROCm/clr commit: ae9fdf9bc1 ]
2017-05-10 13:23:49 -05:00
Ben Sander
48fdf2fc93
Update streamEventTEst.
...
- add checks for events across devices.
- refactor test to make sure it runs long enough to sensitive sync
techniques.
- add tests for DeviceSync, streamWaitEvent.
[ROCm/clr commit: 444e4a20ba ]
2017-05-05 17:29:04 -05:00
wsttiger
618f4bf702
Improve hipStreamWaitEvent test.
...
- use addOne kernel, use local initializer rather than init_array.
- use addOneReverse test to add from back of array. Test alternate fwd and backward to stress dependency logic.
- check device-side dependencies.
[ROCm/clr commit: a10d37e5e6 ]
2017-05-05 17:29:04 -05:00
Maneesh Gupta
43d07079e9
directed tests: Updated to use new hip include path
...
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51
[ROCm/clr commit: 5947878247 ]
2016-10-04 22:20:50 +05:30
Maneesh Gupta
bac30c4561
directed tests: Enable remaining tests in HIT infrastructure
...
Change-Id: I800ee00d6f7d339bb5d2ed898a16362a8541ed3a
[ROCm/clr commit: 1e8282327b ]
2016-09-27 17:24:33 +05:30
Ben Sander
c75953a822
Add hipStreamQuery
...
Change-Id: Ib0813b1065feba4fe9ae861d24cfc6f9c5f580be
[ROCm/clr commit: fd67689114 ]
2016-09-07 15:18:34 -05:00
Ben Sander
c5f7fd723a
refactor ihipPreLaunchKernel phase#1
...
- Fix calls to HIP_INIT_API to pass all function arguments.
- Change ihipFunction to follow coding convention:
- leading underscore for member fields,
- camelCase for member fields.
- move kernel print function inside ihipPreLaunchKernel.
- add HIP_TRACE_API_COLOR, control color of messages.
- add ihipLogStatus wrapper to hipDeviceSynchronize()
Change-Id: I20bbb644da213f821404648945197254e3648fc9
[ROCm/clr commit: 745310399d ]
2016-09-07 15:18:34 -05:00
Ben Sander
2d662d866f
add hipStreamQuery on nvcc, fix hipStreamWaitEvent for nvcc
...
[ROCm/clr commit: 9466ab4fca ]
2016-09-02 17:26:16 -05:00
Ben Sander
589f28547e
hipStreamWaitEvent update.
...
Add passed to hipStreamWaitEvent test.
Fix pointerAttrib test to work with new and old HCC versions.
Minor code touchup.
Change-Id: I139ba6ce9f6bf2b4bee89aebdec5981b4346ffc0
[ROCm/clr commit: 8e883ab666 ]
2016-09-02 09:46:59 -05:00
Ben Sander
b570732b0e
Add test for hipStreamWaitEvent
...
Change-Id: I157b33a78a0fc125b4b85f611f32f3b492f1b4d9
[ROCm/clr commit: 8ec453a8c1 ]
2016-09-02 09:46:59 -05:00