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]
This commit is contained in:
German Andryeyev
2020-04-17 10:42:46 -04:00
parent 45f8e9444a
commit 45306fcdf6
7 changed files with 72 additions and 25 deletions
+1 -2
View File
@@ -222,8 +222,7 @@ hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream) {
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
amd::HostQueue* queue = hip::getQueue(stream);
amd::Command* command = (s != nullptr && (s->flags & hipStreamNonBlocking)) ?
queue->getLastQueuedCommand(true) : nullptr;
amd::Command* command = queue->getLastQueuedCommand(true);
if (command == nullptr) {
command = new amd::Marker(*queue, false);