Add wait on timestamp mechanism

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-11-17 15:05:48 +00:00
committed by Compute-Runtime-Automation
parent 59bcfc30a5
commit 36efe72e3e
15 changed files with 242 additions and 13 deletions

View File

@ -669,6 +669,16 @@ bool CommandStreamReceiver::createAllocationForHostSurface(HostPtrSurface &surfa
return true;
}
void CommandStreamReceiver::updateTagFromCpu(uint32_t taskCount) {
this->latestFlushedTaskCount.store(taskCount);
auto partitionAddress = getTagAddress();
for (uint32_t i = 0; i < activePartitions; i++) {
*partitionAddress = taskCount;
partitionAddress = ptrOffset(partitionAddress, CommonConstants::partitionAddressOffset);
}
}
TagAllocatorBase *CommandStreamReceiver::getEventTsAllocator() {
if (profilingTimeStampAllocator.get() == nullptr) {
std::vector<uint32_t> rootDeviceIndices = {rootDeviceIndex};