Streamline

Use Streamline to connect and profile the application

Here are the steps to profile with Streamline:

  1. Start Streamline gatord on the HiKey 960 board
  2. After building all the software, the gator daemon is available in the home directory.

    Run using sudo to receive access to all hardware counters. Use the -a option to enable running a command during a capture (useful for a future step to automate the capture).

    $ sudo $HOME/gatord -a
  3. Ensure that the application we want to profile is running correctly
  4. The application binary is compiled as covered in previous steps. Run it to confirm that it is working.

    You should see output that looks similar to this:

    $ ./mnist_tf_convol 1 10
    Optimisation mode: CpuAcc
    #1 | Predicted: 7 Actual: 7
    …
    #10 | Predicted: 9 Actual: 9
    Prediction accuracy: 100%
  5. Connect Streamline to the target board
  6. Run streamline and use the eyeball icon on the Target tab to connect to the HiKey 960 board.

    $ streamline &


  7. Start a capture in Streamline -> Run the application -> Stop the capture in Streamline
  8. Use the red button to start a capture and run the application to be profiled.

    $ ./mnist_tf_convol 1 10000

    Use the Stop sign button to stop the capture.

  9. Observe the results with Streamline
  10. Review the CPU workload, the correlation between the phases of execution and the functions called as well as the correlation between the functions and the kernels.

    Make sure to click on the Heat Map along the bottom and change it to Compute Library to see the ML information.

Previous Next