fix: dont allocate TSP for OOQ without Event

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-07-05 19:13:19 +00:00
committed by Compute-Runtime-Automation
parent c892b8c6f3
commit d96cf5846a
9 changed files with 191 additions and 38 deletions

View File

@@ -451,6 +451,19 @@ inline WaitStatus Event::wait(bool blocking, bool useQuickKmdSleep) {
DEBUG_BREAK_IF(this->taskLevel == CompletionStamp::notReady && this->executionStatus >= 0);
{
TakeOwnershipWrapper<CommandQueue> queueOwnership(*cmdQueue);
bool releaseNodes = (taskCount == cmdQueue->peekTaskCount());
if (bcsState.isValid()) {
releaseNodes &= (bcsState.taskCount == cmdQueue->peekBcsTaskCount(bcsState.engineType));
}
if (releaseNodes) {
cmdQueue->releaseDeferredNodes();
}
}
auto *allocationStorage = cmdQueue->getGpgpuCommandStreamReceiver().getInternalAllocationStorage();
allocationStorage->cleanAllocationList(this->taskCount, TEMPORARY_ALLOCATION);