mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
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:
committed by
Compute-Runtime-Automation
parent
5833d65bc0
commit
f1fc273cfc
@@ -1291,9 +1291,13 @@ WaitStatus CommandQueue::waitForAllEngines(bool blockedQueue, PrintfHandler *pri
|
||||
}
|
||||
}
|
||||
|
||||
waitStatus = waitUntilComplete(taskCount, activeBcsStates, flushStamp->peekStamp(), false, cleanTemporaryAllocationsList, waitedOnTimestamps);
|
||||
auto taskCountToWait = taskCount;
|
||||
|
||||
handlePostCompletionOperations(false);
|
||||
waitStatus = waitUntilComplete(taskCountToWait, activeBcsStates, flushStamp->peekStamp(), false, cleanTemporaryAllocationsList, waitedOnTimestamps);
|
||||
|
||||
TakeOwnershipWrapper<CommandQueue> queueOwnership(*this);
|
||||
|
||||
handlePostCompletionOperations(this->taskCount != taskCountToWait);
|
||||
|
||||
if (printfHandler) {
|
||||
if (!printfHandler->printEnqueueOutput()) {
|
||||
@@ -1382,8 +1386,6 @@ bool CommandQueue::migrateMultiGraphicsAllocationsIfRequired(const BuiltinOpPara
|
||||
}
|
||||
|
||||
void CommandQueue::handlePostCompletionOperations(bool checkQueueCompletion) {
|
||||
TakeOwnershipWrapper<CommandQueue> queueOwnership(*this);
|
||||
|
||||
if (checkQueueCompletion && !isCompleted(this->taskCount, this->bcsStates)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user