Skip to content

Work on Power Energy

sf-wind edited this page Sep 18, 2018 · 3 revisions

We support using monsoon power monitor to measure the power/energy of running the ML workload on phones. Note the power/energy of the entire phone is measured. There is no component analysis using this approach.

Hardware setup

  • Purchase a monsoon power monitor (black box).
  • Purchase a phone that the battery can be removed. Or, remove the battery from the phone. Pull two wires connecting the +/- of the connectors to the battery outside the phone so that the monitor can be connected to.
  • Follow the instructions in the monsoon power monitor to connect the server and phone.

Software setup (with Mac)

  • Install libusb
  • Install python driver for the monsoon power monitor: pip install monsoon

Run

  • Turn on monsoon power monitor
  • Power up the main channel (run a sample script from monsoon doc)
  • Turn on the phone
  • Run benchmark, e.g. SqueezeNet model