From 438eb7d9ce0ae9f57029074fe52b564b9c21b989 Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 6 Nov 2019 15:19:25 -0500
Subject: [PATCH] P4 to Git Change 2026045 by cpaquot@cpaquot-ocl-lc-lnx on
2019/11/06 15:01:45
SWDEV-145570 - [HIP] Report submitted when actually submitted to the HW.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#33 edit
---
rocclr/runtime/platform/commandqueue.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rocclr/runtime/platform/commandqueue.cpp b/rocclr/runtime/platform/commandqueue.cpp
index 9a0b0c0f24..b725c3b27b 100644
--- a/rocclr/runtime/platform/commandqueue.cpp
+++ b/rocclr/runtime/platform/commandqueue.cpp
@@ -134,10 +134,12 @@ 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);