SWDEV-504494 - Resolve signal dependencies

- Resolve signal dependencies for barrier value packet if there are > 1
  depenent signals. Barrier Value packet accounts for only 1 dep signal
- Better log

Change-Id: Ia506ad5d80b91d598f92e7b539f41756e9b4b64b


[ROCm/clr commit: 2d450e8b06]
This commit is contained in:
Saleel Kudchadker
2025-01-28 02:33:25 +00:00
parent 992b5fd009
commit d0656c944b
2 changed files with 15 additions and 7 deletions
@@ -158,13 +158,13 @@ void HostQueue::finish(bool cpu_wait) {
if (command == NULL) {
return;
}
ClPrint(LOG_DEBUG, LOG_CMD, "Marker queued to ensure finish");
ClPrint(LOG_DEBUG, LOG_CMD, "Marker queued to %p for finish", this);
command->enqueue();
}
// Check HW status of the ROCcrl event. Note: not all ROCclr modes support HW status
static constexpr bool kWaitCompletion = true;
if (cpu_wait || !device().IsHwEventReady(command->event(), kWaitCompletion)) {
ClPrint(LOG_DEBUG, LOG_CMD, "HW Event not ready, awaiting completion instead");
ClPrint(LOG_DEBUG, LOG_CMD, "No HW event || cpu wait=%d, await command completion", cpu_wait);
command->awaitCompletion();
if (IS_HIP) {
@@ -181,7 +181,7 @@ void HostQueue::finish(bool cpu_wait) {
}
command->release();
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished");
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished for host queue : %p", this);
}
void HostQueue::loop(device::VirtualDevice* virtualDevice) {