TimerResolution Device Properties 1.2

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2021-07-02 21:17:51 +00:00
committed by Compute-Runtime-Automation
parent dc9b2351d5
commit dc77174255
21 changed files with 90 additions and 56 deletions

View File

@@ -36,7 +36,7 @@ void TemperatureImp::init() {
}
TemperatureImp::TemperatureImp(const ze_device_handle_t &deviceHandle, OsSysman *pOsSysman, zes_temp_sensors_t type) {
ze_device_properties_t deviceProperties = {};
ze_device_properties_t deviceProperties = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES};
Device::fromHandle(deviceHandle)->getProperties(&deviceProperties);
pOsTemperature = OsTemperature::create(pOsSysman, deviceProperties.flags & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE,
deviceProperties.subdeviceId, type);