mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Optimize profiling calls.
- do not call KMD query for submitted timestamp, we only need CPU timestamp here. Change-Id: Id60c1e367d9430d893fb3a253ffc058f45fc9609 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
39a930e122
commit
b039f5cc76
@@ -698,9 +698,9 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
|
||||
DEBUG_BREAK_IF(device->getDeviceInfo().preemptionSupported != false);
|
||||
}
|
||||
|
||||
TimeStampData submitTimeStamp;
|
||||
TimeStampData submitTimeStamp = {};
|
||||
if (isProfilingEnabled() && eventBuilder.getEvent()) {
|
||||
this->getDevice().getOSTime()->getCpuGpuTime(&submitTimeStamp);
|
||||
this->getDevice().getOSTime()->getCpuTime(&submitTimeStamp.CPUTimeinNS);
|
||||
eventBuilder.getEvent()->setSubmitTimeStamp(&submitTimeStamp);
|
||||
getGpgpuCommandStreamReceiver().makeResident(*eventBuilder.getEvent()->getHwTimeStampNode()->getBaseGraphicsAllocation());
|
||||
if (isPerfCountersEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user