mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
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:
committed by
Compute-Runtime-Automation
parent
cc1e3965ce
commit
dfc69c746a
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user