mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add wait on timestamp mechanism
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
59bcfc30a5
commit
36efe72e3e
@ -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};
|
||||
|
Reference in New Issue
Block a user