fix: improve TBX downloading after L0 Event sync

Related-To: HSD-18038498579

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-08-22 14:04:53 +00:00
committed by Compute-Runtime-Automation
parent 4b01058706
commit 696b02bfd3
17 changed files with 168 additions and 21 deletions

View File

@@ -178,10 +178,10 @@ bool CommandQueueHw<Family>::waitForTimestamps(Range<CopyEngineState> copyEngine
}
if (waited) {
getGpgpuCommandStreamReceiver().downloadAllocations();
getGpgpuCommandStreamReceiver().downloadAllocations(true);
for (const auto &copyEngine : copyEnginesToWait) {
auto bcsCsr = getBcsCommandStreamReceiver(copyEngine.engineType);
bcsCsr->downloadAllocations();
bcsCsr->downloadAllocations(true);
}
}
}

View File

@@ -832,12 +832,12 @@ bool Event::areTimestampsCompleted() {
}
}
}
this->cmdQueue->getGpgpuCommandStreamReceiver().downloadAllocations();
this->cmdQueue->getGpgpuCommandStreamReceiver().downloadAllocations(true);
const auto &bcsStates = this->cmdQueue->peekActiveBcsStates();
for (auto currentBcsIndex = 0u; currentBcsIndex < bcsStates.size(); currentBcsIndex++) {
const auto &state = bcsStates[currentBcsIndex];
if (state.isValid()) {
this->cmdQueue->getBcsCommandStreamReceiver(state.engineType)->downloadAllocations();
this->cmdQueue->getBcsCommandStreamReceiver(state.engineType)->downloadAllocations(true);
}
}
return true;