mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Add environment variable to select L0 timer resolution
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9cbfbd1d53
commit
40ecee5733
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user