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
Cette révision appartient à :
German Andryeyev a révisé 2020-04-21 10:05:26 -04:00
1 Parent 2eb8cc8e90
révision db70fc66b7
7 fichiers modifiés
+72 -25

Aucun fichier ne correspond à votre recherche

+1 -2
Voir le fichier
@@ -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);