You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ze_result_t result = pPmt->readValue(key, energy);
65
+
// PMT will return energy counter in Q20 format(fixed point representation) where first 20 bits(from LSB) represent decimal part and remaining integral part which is converted into joule by division with 1048576(2^20) and then converted into microjoules
ze_result_t result = pSysfsAccess->read(i915HwmonDir + "/" + energyCounterNode, pEnergy->energy);
70
+
powerGetTimestamp(pEnergy->timestamp);
71
+
ze_result_t result = pSysfsAccess->read(energyHwmonDir + "/" + energyCounterNode, pEnergy->energy);
63
72
if (result != ZE_RESULT_SUCCESS) {
64
-
const std::string key("PACKAGE_ENERGY");
65
-
uint64_t energy = 0;
66
-
result = pPmt->readValue(key, energy);
67
-
// PMT will return energy counter in Q20 format(fixed point representation) where first 20 bits(from LSB) represent decimal part and remaining integral part which is converted into joule by division with 1048576(2^20) and then converted into microjoules
0 commit comments