mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Stop querying gpu frequency during each profiling data calculation
change type of profiling timer resolution in device info to double Change-Id: I41a67ecf61cd3bdc5a997b1f083b9998063f4f7f
This commit is contained in:

committed by
sys_ocldev

parent
a3b782ffc7
commit
881895bd2a
@ -259,7 +259,7 @@ bool Event::calcProfilingData() {
|
||||
|
||||
int64_t c0 = 0;
|
||||
if (!dataCalculated && timeStampNode && !profilingCpuPath) {
|
||||
double frequency = cmdQueue->getDevice().getProfilingTimerResolution();
|
||||
double frequency = cmdQueue->getDevice().getDeviceInfo().profilingTimerResolution;
|
||||
/* calculation based on equation
|
||||
CpuTime = GpuTime * scalar + const( == c0)
|
||||
scalar = DeltaCpu( == dCpu) / DeltaGpu( == dGpu)
|
||||
|
Reference in New Issue
Block a user