Measuring power consumption on Hailo8L with RP5 (AI KIT)

Hi to All,

I cannot measure power consumption on Hailo8L RP 5 (AI KIT). The driver and the runtime are all 4.19. I have checked similar posts with the same problem but none of them suggested a solution.

When I use command (hailortcli measure-power) proposed in the following post:

I observe the following output:

Executing on device: 0000:01:00.0
[HailoRT] [error] Firmware control has failed. Major status: 0x400300b4, Minor status: 0x400300b4
[HailoRT] [error] Firmware major status: CONTROL_PROTOCOL_STATUS_UNSUPPORTED_DEVICE
[HailoRT] [error] Firmware minor status: CONTROL_PROTOCOL_STATUS_UNSUPPORTED_DEVICE
[HailoRT] [error] Opcode HAILO_CONTROL_OPCODE_SET_POWER_MEASUEMENT is not supported on the current board.
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_UNSUPPORTED_OPCODE(48)
Failed to set power measurement parameters, status HAILO_UNSUPPORTED_OPCODE(48)
Failed power measurement, status HAILO_UNSUPPORTED_OPCODE(48)
Failed to execute on device: 0000:01:00.0. status= HAILO_UNSUPPORTED_OPCODE(48)

When I use code proposed in the following post

I observe the following output:

[HailoRT] [error] Firmware control has failed. Major status: 0x400300b4, Minor status: 0x400300b4
[HailoRT] [error] Firmware major status: CONTROL_PROTOCOL_STATUS_UNSUPPORTED_DEVICE
[HailoRT] [error] Firmware minor status: CONTROL_PROTOCOL_STATUS_UNSUPPORTED_DEVICE
[HailoRT] [error] Opcode HAILO_CONTROL_OPCODE_SET_POWER_MEASUEMENT is not supported on the current board.
Traceback (most recent call last):
  File "/home/.local/lib/python3.11/site-packages/hailo_platform/pyhailort/pyhailort.py", line 2026, in set_power_measurement
    return self._device.set_power_measurement(buffer_index, dvm, measurement_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 48

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/hailo/examples/power.py", line 25, in <module>
    _run_periodic()
  File "/home/hailo/examples/power.py", line 9, in _run_periodic
    target.control.set_power_measurement()
  File "/home/.local/lib/python3.11/site-packages/hailo_platform/pyhailort/pyhailort.py", line 2025, in set_power_measurement
    with ExceptionWrapper():
  File "/home/.local/lib/python3.11/site-packages/hailo_platform/pyhailort/pyhailort.py", line 111, in __exit__
    self._raise_indicative_status_exception(value)
  File "/home/.local/lib/python3.11/site-packages/hailo_platform/pyhailort/pyhailort.py", line 156, in _raise_indicative_status_exception
    raise self.create_exception_from_status(error_code) from libhailort_exception
hailo_platform.pyhailort.pyhailort.HailoRTUnsupportedOpcodeException: HailoRT has failed because an unsupported opcode was sent to device

When I use the following code proposed in the same post

from hailo_platform import Device

dev = Device()

dev.control.get_extended_device_information()

My output includes:

Current monitoring: Disabled

The output of the following command:

find /usr/ | grep libhailort

is:

/usr/lib/libhailort.so

/usr/lib/libhailort.so.4.19.0

Any help will the issue will be appreciated!

Thank you and best regards!

The answer is in the follwing post:

In short, the AI KIT does not have the required component to measure power consumption.