Add environment variable to select L0 timer resolution

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-03-29 16:54:52 -07:00
committed by Compute-Runtime-Automation
parent 9cbfbd1d53
commit 40ecee5733
4 changed files with 43 additions and 1 deletions

View File

@@ -392,7 +392,11 @@ ze_result_t DeviceImp::getProperties(ze_device_properties_t *pDeviceProperties)
pDeviceProperties->numSlices = hardwareInfo.gtSystemInfo.SliceCount * ((this->numSubDevices > 0) ? this->numSubDevices : 1);
pDeviceProperties->timerResolution = this->neoDevice->getDeviceInfo().outProfilingTimerClock;
if (NEO::DebugManager.flags.UseCyclesPerSecondTimer.get() == 0) {
pDeviceProperties->timerResolution = this->neoDevice->getDeviceInfo().outProfilingTimerResolution;
} else {
pDeviceProperties->timerResolution = this->neoDevice->getDeviceInfo().outProfilingTimerClock;
}
pDeviceProperties->timestampValidBits = hardwareInfo.capabilityTable.timestampValidBits;