SWDEV-193956 - [hipclang-vdi-rocm][perf]
Retain command before a wait. Change-Id: I0ab8f1352af32c96567dad9e31b3687bdf407bf6
This commit is contained in:
@@ -88,9 +88,10 @@ bool HostQueue::terminate() {
|
|||||||
void HostQueue::finish() {
|
void HostQueue::finish() {
|
||||||
Command* command = nullptr;
|
Command* command = nullptr;
|
||||||
if (IS_HIP) {
|
if (IS_HIP) {
|
||||||
command = getLastQueuedCommand(false);
|
command = getLastQueuedCommand(true);
|
||||||
if (nullptr != command) {
|
if (nullptr != command) {
|
||||||
command->awaitCompletion();
|
command->awaitCompletion();
|
||||||
|
command->release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nullptr == command) {
|
if (nullptr == command) {
|
||||||
|
|||||||
Reference in New Issue
Block a user