From 86ca698d2f2acf8fd898de5ebf0bdb4346167227 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 6 Nov 2019 17:55:50 -0500 Subject: [PATCH] P4 to Git Change 2026151 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/06 17:49:50 SWDEV-145570 - Revert CL 2026045. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#34 edit --- rocclr/runtime/platform/commandqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocclr/runtime/platform/commandqueue.cpp b/rocclr/runtime/platform/commandqueue.cpp index b725c3b27b..bf27b38d6b 100644 --- a/rocclr/runtime/platform/commandqueue.cpp +++ b/rocclr/runtime/platform/commandqueue.cpp @@ -135,11 +135,11 @@ void HostQueue::loop(device::VirtualDevice* virtualDevice) { ClPrint(LOG_DEBUG, LOG_CMD, "command is submitted: %p", command); + command->setStatus(CL_SUBMITTED); + // Submit to the device queue. command->submit(*virtualDevice); - command->setStatus(CL_SUBMITTED); - // if this is a user invisible marker command, then flush if (0 == command->type()) { virtualDevice->flush(head);