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:
Mateusz Jablonski
2018-04-10 16:19:13 +02:00
committed by sys_ocldev
parent a3b782ffc7
commit 881895bd2a
10 changed files with 47 additions and 16 deletions

View File

@ -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)