Is there any Hailo board available that allows measuring the power consumption of the AI processor using the Python SDK?
Welcome to the Hailo Community!
The Hailo-8 M.2 modules have an INA device onboard that allows to measure the power consumption. Please check the tutorials in the Hailo AI Software Suite Docker. One of the tutorials shows you how to use the Python API.
You can also use the HailoRT CLI with the hailortcli measure-power
command.
Hi KlausK, Thanks for your supports. I am using M2 HAT+ board and I ran CLI :
but I am getting the error below.
[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_POWER_MEASUEMENT is not supported on the current board.
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_UNSUPPORTED_OPCODE(48)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_UNSUPPORTED_OPCODE(48)
Failed power measurement, status HAILO_UNSUPPORTED_OPCODE(48)
Failed to execute on device: 0001:01:00.0. status= HAILO_UNSUPPORTED_OPCODE(48)
Thanks.
The messages you’re seeing suggest that you don’t have a Hailo-8 M.2 module. Instead, it’s likely a Hailo-8L or a Raspberry Pi AI HAT. These variants don’t include the INA power-monitoring device, in order to reduce cost.
If your goal is to design a cost-optimized solution using Hailo-8L, you can still perform power measurements with a Hailo-8 M.2 module. Models compiled for Hailo-8L will run on the Hailo-8 M.2, allowing you to evaluate both performance and power consumption as if you were using a Hailo-8L.
Can you send me the link of the board which is able to measure power consumption ? I am a little confused by the names of different boards. Thanks.
It can definitely be confusing since the names are similar, so here’s a quick breakdown:
-
Supports power measurement
- All Hailo-8 M.2 modules (Key M, B+M, A+E)
- Raspberry Pi M.2 HAT+ when paired with a Hailo-8 M.2 module (the measurement support comes from the module)
-
Does not support power measurement
- Hailo-8L M.2 modules
- Raspberry Pi AI HAT+ with a Hailo-8/Hailo-8L chip soldered directly on the board
So if you want to measure power consumption, you’ll need a Hailo-8 M.2 module (not L) and optionally the RPi M.2 HAT+ if you’re using it with a Raspberry Pi.