Introduction to Command-line Profiling
The Profiling tool is written in Python and provides the following functions:
- Delivers a training job to profile.
- Queries and exports the profiling results of training jobs in system profiling, job profiling, and single-operator profiling.
The following table describes the functions and installation path of the Profiling script.
Script |
Function |
Path |
---|---|---|
hiprof.sh |
1. Delivers a training job to profile. 2. Queries the profiling results of training jobs in system profiling, job profiling, and single-operator profiling. 3. Manages training jobs. |
/usr/local/Ascend/toolkit/tools/profiler/bin |
- The following assumes that the Profiling installation directory is /usr/local/Ascend.
- Command-line Profiling supports prefix matching. A correct and unambiguous prefix for any command-line option can trigger proper execution.
For example, --aicore_metri will be matched as --aicore_metrics.
- Unless otherwise specified, Profiling is run by the common user HwHiAiUser created during the tool installation.
- To run the hiprof.sh script, ensure that the Profiling process has been started by referring to Profiling Command Reference. The script should be used after the profile data has been analyzed by the Profiling process.