SWDEV-193956 - [hipclang-vdi-rocm][perf]

Retain command before a wait.

Change-Id: I0ab8f1352af32c96567dad9e31b3687bdf407bf6


[ROCm/clr commit: 77ff161324]
此提交包含在:
German Andryeyev
2020-02-21 16:43:21 -05:00
父節點 d205c0bc8c
當前提交 ebc40e115c
+2 -1
查看文件
@@ -88,9 +88,10 @@ bool HostQueue::terminate() {
void HostQueue::finish() {
Command* command = nullptr;
if (IS_HIP) {
command = getLastQueuedCommand(false);
command = getLastQueuedCommand(true);
if (nullptr != command) {
command->awaitCompletion();
command->release();
}
}
if (nullptr == command) {