Getting Started with Intel Gaudi Profiler
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.
Modify a configuration file in the Intel Gaudi profiling subsystem.
$ hl-prof-config -e off -phase=multi-enq -g 1-20 -s my_profiling_session
Set an environment variable to enable the Intel Gaudi profiling subsystem.
$ export HABANA_PROFILE=1
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.Upload the file to https://perfetto.habana.ai and view the API calls and hardware trace events.
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
.