Obtaining Profile Data
Before performance optimization, you need to obtain accurate profile data, understand the performance status, and analyze the optimization direction. Ascend C provides multiple performance test methods, including board profiling and the pipeline chart for single-operator performance simulation.
Profiling on the Board
The following command is an example of collecting profile data on the board for an operator. You can flexibly combine the configuration parameters as required.
msprof --output="./out" --ai-core=on --aic-metrics="PipeUtilization" add_custom_npu
The following is an example of some profile data files:
For details about the fields and tool usage, see Performance Tuning Tool User Guide .
Operator Simulation Pipeline
The msProf tool supports profile data collection and automatic parsing in a simulation environment. For details about how to obtain the simulation pipeline by using the msProf tool, see Instruction Pipeline.
