mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
fix: calculate event timestamps based on submit time and host time diff
Related-To: HSD-18034426016, HSD-18034426678 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
820f32abe2
commit
7e7eea9995
@@ -60,9 +60,7 @@ void *CommandQueue::cpuDataTransferHandler(TransferProperties &transferPropertie
|
||||
if (eventsRequest.outEvent && !isMarkerRequiredForEventSignal) {
|
||||
eventBuilder.create<Event>(this, transferProperties.cmdType, CompletionStamp::notReady, CompletionStamp::notReady);
|
||||
outEventObj = eventBuilder.getEvent();
|
||||
TimeStampData queueTimeStamp;
|
||||
getDevice().getOSTime()->getGpuCpuTime(&queueTimeStamp);
|
||||
outEventObj->setQueueTimeStamp(queueTimeStamp);
|
||||
outEventObj->setQueueTimeStamp();
|
||||
outEventObj->setCPUProfilingPath(true);
|
||||
*eventsRequest.outEvent = outEventObj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user