From 682151f39d421d6d6425482d8718ee623f4cf2e1 Mon Sep 17 00:00:00 2001 From: anusha GodavarthySurya Date: Tue, 27 Jul 2021 00:31:28 -0700 Subject: [PATCH] SWDEV-295251 - Avoid marker if queue is empty for DD to fix MT issue Change-Id: I80be39ace9d93347f81ef8acd7858d43bc4a3f1e --- rocclr/platform/commandqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/platform/commandqueue.cpp b/rocclr/platform/commandqueue.cpp index 2cc44abb3c..0e904aab89 100644 --- a/rocclr/platform/commandqueue.cpp +++ b/rocclr/platform/commandqueue.cpp @@ -108,7 +108,7 @@ void HostQueue::finish() { if (IS_HIP) { command = getLastQueuedCommand(true); // Check if the queue has nothing to process and return - if (command == nullptr) { + if (AMD_DIRECT_DISPATCH && command == nullptr) { return; } }