fix: check for new submission before releasing TSP nodes in wait call.

Related-To: NEO-8318

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-08-31 10:42:16 +00:00
committed by Compute-Runtime-Automation
parent 5833d65bc0
commit f1fc273cfc
3 changed files with 54 additions and 4 deletions

View File

@@ -454,6 +454,8 @@ inline WaitStatus Event::wait(bool blocking, bool useQuickKmdSleep) {
DEBUG_BREAK_IF(this->taskLevel == CompletionStamp::notReady && this->executionStatus >= 0);
TakeOwnershipWrapper<CommandQueue> queueOwnership(*cmdQueue);
bool checkQueueCompletionForPostSyncOperations = !(waitedOnTimestamps && !cmdQueue->isOOQEnabled() &&
(this->timestampPacketContainer->peekNodes() == cmdQueue->getTimestampPacketContainer()->peekNodes()));