Getting Started with Intel Gaudi Profiler

This guide provides simple steps to easily profile Intel® Gaudi® software applications without making any changes to the code:

  1. Modify the configuration file in the Intel Gaudi Profiling subsystem:

    $ hl-prof-config -e off -phase=multi-enq -g 1-20 -s my_profiling_session
    

    Note

    The hl-prof-config command is configured to capture the model execution from the first graph launch until the 20th graph launch. If it appears that some significant part of the model is missing, you can modify the hl-prof-config flag to -g 1-20.

  2. Set the below environment variable to enable the Intel Gaudi Profiling subsystem:

    $ export HABANA_PROFILE=1
    
  3. Execute any Intel Gaudi software-based application (such as PyTorch or the Intel Gaudi software API). Once done, you should be able to locate a file with my_profiling_session prefix and .hltv suffix in your working directory.

  4. Upload the file to https://perfetto.habana.ai and view the API calls and hardware trace events.

../../_images/main_screen.PNG