Add device capability for timestamp valid bits

Change-Id: Ib4a0f4ce80f0fc3649f366ceb458e8f506a97e34
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2020-09-18 10:58:07 -07:00
committed by sys_ocldev
parent 7fdfa870fe
commit 2e912aff52
15 changed files with 55 additions and 13 deletions

View File

@@ -359,6 +359,8 @@ ze_result_t DeviceImp::getProperties(ze_device_properties_t *pDeviceProperties)
pDeviceProperties->coreClockRate = deviceInfo.maxClockFrequency;
pDeviceProperties->maxMemAllocSize = this->neoDevice->getDeviceInfo().maxMemAllocSize;
pDeviceProperties->maxCommandQueuePriority = 0;
pDeviceProperties->numThreadsPerEU = deviceInfo.numThreadsPerEU;
@@ -373,7 +375,9 @@ ze_result_t DeviceImp::getProperties(ze_device_properties_t *pDeviceProperties)
pDeviceProperties->timerResolution = this->neoDevice->getDeviceInfo().outProfilingTimerResolution;
pDeviceProperties->maxMemAllocSize = this->neoDevice->getDeviceInfo().maxMemAllocSize;
pDeviceProperties->timestampValidBits = hardwareInfo.capabilityTable.timestampValidBits;
pDeviceProperties->kernelTimestampValidBits = hardwareInfo.capabilityTable.kernelTimestampValidBits;
if (hardwareInfo.capabilityTable.isIntegratedDevice) {
pDeviceProperties->flags |= ZE_DEVICE_PROPERTY_FLAG_INTEGRATED;