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

12 Коммитов

Автор SHA1 Сообщение Дата
German Andryeyev 57779166a7 Avoid null stream allocation in hipFree
- Add option to skip stream allocation on access.
- Avoid null stream allocation in ihipFree, so an inactive device
won't be initialized

Change-Id: Id24426640df59a5e7a08b2dd9dcd4d67758b84bf


[ROCm/hip commit: fd8ec70847]
2020-05-04 17:17:36 -04:00
German Andryeyev f814d47640 Clean-up the list of blocking streams
- Insert the stream into the list on the host queue creation,
instead of stream creation

Change-Id: Ib25053019f7df97e5bc786922a6587b9514852d3


[ROCm/hip commit: deb2c399c9]
2020-04-29 11:37:43 -04:00
German Andryeyev 0aea572bff SWDEV-232918
hipEventRecord is much slower in hipclang/vdi

- Make sure default streams don't sync each other.
- Add null stream into the list of default streams.
- Code clean-up to simplify queue look-up.

Change-Id: I36e1fc8d86a600e3dce806694d95d146ed8afd03


[ROCm/hip commit: f7f7337bae]
2020-04-24 14:40:43 -04:00
German Andryeyev 45306fcdf6 SWDEV-231579 - [hipclang-vdi-rocm][perf]
- HIPPerfDispatchSpeed disparity between HIP/HCC vs HIP/VDI
Insert a wait marker command in the default stream only when
HIP has pending operations on other async streams

Change-Id: I68660a54867fab7571ba57eb1df5feb1bca1c61a


[ROCm/hip commit: db70fc66b7]
2020-04-21 10:05:26 -04:00
Christophe Paquot 3c623309cd hipStreamAddCallback test seg faults
Change-Id: If419d2fad490d0ed50eb1315af809fc1deda1ce3
SWDEV-227875: Add a lock in streams to lock when the callback is call so we make sure things aren't moving forward in the stream


[ROCm/hip commit: 653277bd3f]
2020-03-20 13:07:34 -07:00
Christophe Paquot 0d5638f513 hipStreamAddCallback test seg faults
Change-Id: I1f107fc8a5c586cd571f0280ed8716c5f89d25b7
SWDEV-227875: Need to add a dummy marker in case the stream is empty.


[ROCm/hip commit: 3dfbfc408b]
2020-03-19 11:11:59 -07:00
Christophe Paquot e673e8e0c9 Blocking and default streams' sync:
Add hip::syncStreams(dev) to sync blocking streams on a given device.
hip::syncStreams(void) should only sync streams on the current device.

Change-Id: Ib6b0735215fa0ed12c646ebd029e9763ee3712ce


[ROCm/hip commit: fa6ed89cff]
2020-02-26 08:54:00 -08:00
Christophe Paquot c8bce5553d Fixed a few multithreaded potential issues
Also make D2H and H2D keep track of the chain of events
when we need to use a different HostQueue.

Change-Id: I1c5da6ea6104b37ad7aac00f0eb8ea9371e6ba1c


[ROCm/hip commit: 2203093159]
2020-02-24 20:14:10 -08:00
Christophe Paquot 912bc9b38c Introducing hip::Device which wraps around amd::Context and deviceId
Change-Id: Ie35a6edb65c001b35eb9f5d2af26e765dc41c00e


[ROCm/hip commit: 9630e40beb]
2020-02-18 17:18:56 -05:00
Christophe Paquot df7fd4fb53 hipLaunchByPtr and hipLaunchKernel deviceId potential issue
Those APIs should look at the device associated with the stream first.
If that stream is null then get the current device ID.

Change-Id: Iedde1d1644818ba64f128b988f0bd9674f5b8ad6


[ROCm/hip commit: cc63d2d7b8]
2020-02-13 12:00:30 -08:00
Laurent Morichetti ed5081c945 Update copyright info for VDI files
Change-Id: Ib160fbf89ec89a5895321f73402a33b4d344a68f


[ROCm/hip commit: 2764aee583]
2020-02-04 08:47:10 -08:00
Laurent Morichetti cbd1b27c5e Merge HIP/VDI branch 'amd-staging' into lmoriche/amd-master-next
Change-Id: Iabaab4e72815ba483a1330ec6a1130f2b86676f0


[ROCm/hip commit: e604beeef4]
2020-01-29 15:02:13 -08:00