feature: create InOrderExecInfo for standalone CB Event

Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2024-01-12 16:27:50 +00:00
committed by Compute-Runtime-Automation
parent cc1e3965ce
commit dfc69c746a
13 changed files with 247 additions and 164 deletions

View File

@@ -474,7 +474,7 @@ void Event::setReferenceTs(uint64_t currentCpuTimeStamp) {
}
}
NEO::GraphicsAllocation *Event::getInOrderExecDataAllocation() const { return inOrderExecInfo.get() ? &inOrderExecInfo->getDeviceCounterAllocation() : nullptr; }
NEO::GraphicsAllocation *Event::getInOrderExecDataAllocation() const { return inOrderExecInfo.get() ? inOrderExecInfo->getDeviceCounterAllocation() : nullptr; }
void Event::unsetInOrderExecInfo() {
inOrderExecInfo.reset();

View File

@@ -303,6 +303,10 @@ ze_result_t EventImp<TagSizeT>::queryStatusEventPackets() {
template <typename TagSizeT>
bool EventImp<TagSizeT>::handlePreQueryStatusOperationsAndCheckCompletion() {
if (!this->eventPoolAllocation) {
return false;
}
if (metricNotification != nullptr) {
hostEventSetValue(metricNotification->getNotificationState());
}
@@ -322,7 +326,7 @@ bool EventImp<TagSizeT>::handlePreQueryStatusOperationsAndCheckCompletion() {
}
if (!downloadedInOrdedAllocation && inOrderExecInfo) {
auto alloc = inOrderExecInfo->isHostStorageDuplicated() ? inOrderExecInfo->getHostCounterAllocation() : &inOrderExecInfo->getDeviceCounterAllocation();
auto alloc = inOrderExecInfo->isHostStorageDuplicated() ? inOrderExecInfo->getHostCounterAllocation() : inOrderExecInfo->getDeviceCounterAllocation();
if (alloc->isUsedByOsContext(csr->getOsContext().getContextId())) {
csr->downloadAllocation(*alloc);