SWDEV-337331 - command queue logs for debugging option

Change-Id: I198aecc5fd12369d87d4acc9910acc9435c1967a
Dieser Commit ist enthalten in:
Ajay
2022-06-22 19:39:43 +00:00
Ursprung 4fe8038b7c
Commit 236178d0d4
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
+3 -1
Datei anzeigen
@@ -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();