diff --git a/rocclr/platform/command.cpp b/rocclr/platform/command.cpp index 2edd35554b..50c850d98a 100644 --- a/rocclr/platform/command.cpp +++ b/rocclr/platform/command.cpp @@ -345,7 +345,7 @@ void Command::enqueue() { Agent::postEventCreate(as_cl(static_cast(this)), type_); } - ClPrint(LOG_DEBUG, LOG_CMD, "Command enqueued: %p", this); + ClPrint(LOG_DEBUG, LOG_CMD, "Command (%s) enqueued: %p", getOclCommandKindString(this->type()), this); // Direct dispatch logic below will submit the command immediately, but the command status // update will occur later after flush() with a wait diff --git a/rocclr/platform/commandqueue.cpp b/rocclr/platform/commandqueue.cpp index 18095c1b44..58183aed04 100644 --- a/rocclr/platform/commandqueue.cpp +++ b/rocclr/platform/commandqueue.cpp @@ -172,12 +172,14 @@ void HostQueue::loop(device::VirtualDevice* virtualDevice) { // Process the command's event wait list. const Command::EventWaitList& events = command->eventWaitList(); bool dependencyFailed = false; - + ClPrint(LOG_DEBUG, LOG_CMD, "Command (%s) processing: %p ,events.size(): %d", + getOclCommandKindString(command->type()), command, events.size()); for (const auto& it : events) { // Only wait if the command is enqueued into another queue. if (it->command().queue() != this) { // Runtime has to flush the current batch only if the dependent wait is blocking if (it->command().status() != CL_COMPLETE) { + ClPrint(LOG_DEBUG, LOG_CMD, "Command (%s) %p awaiting event: %p", getOclCommandKindString(command->type()), command, it); virtualDevice->flush(head, true); tail = head = NULL; dependencyFailed |= !it->awaitCompletion();