GUI Description
Function
The Source tab page displays the operator instruction heatmap, and allows you to view the mapping between operator source code and instruction sets and the duration. During Ascend C operator development, developers can analyze the performance.
GUI Display
Import the operator instruction hotspot file in BIN format by referring to Importing Data. For details about how to obtain the operator instruction hotspot file in BIN format, see "msprof op simulator" in Operator Tuning (msProf) in Operator Development Tool User Guide. The file is visualize_data.bin.
The Source tab page consists of three parts: filter bar (area 1), source file code attributes (area 2), and instructions (area 3), as shown in Figure 1.
- Area 1: filter bar. You can filter the content to be viewed by Core and Source.
- Area 2: source file code attributes. You can view the code of each line and the execution duration and times. Table 1 describes the fields in the table.
Table 1 Fields in the source file code attributes Field
Description
Example
#
Code line number.
100
Source
Source file code.
-
Instructions Executed
Number of codes in the line executed on each core.
100
Cycles
Number of cycles (clock cycles) consumed when the codes in the line are executed on each core.
100
GPR Count
Number of times the general-purpose register is used when the codes in the line are executed on each core.
This field is displayed only when the data is collected by msprof op simulator.
10
L2Cache Hit Rate
L2 cache hit rate of the line of code executed on all cores.
This field is displayed only when the data is collected by msprof op.
100%
Process Bytes
Sum of the data volume processed by the line of code on each core, in bytes.
2048
- Area 3: instructions. You can view instruction records, including the address, content, quantity, and times. Table 2 describes the fields in the table.
Table 2 Fields in the instruction table Field
Description
Example
#
Sequence number.
100
Address
Offset address of the instruction.
0×1122a828
Pipe
Pipe (instruction queue) where the instruction is located.
MTE2
Source
Instruction content.
BAR PIPE:ALL
Instructions Executed
Number of instructions in the line executed on each core.
100
GPR Count
Number of times the general-purpose register is used when the instructions in the line are executed on each core.
This field is displayed only when the data is collected by msprof op simulator.
10
Cycles
Number of cycles (clock cycles) consumed when the instructions in the line are executed on each core.
100
L2Cache Hit Rate
L2 cache hit rate of the instruction executed on all cores.
This field is displayed only when the data is collected by msprof op.
72%
Process Bytes
Data volume processed by the instruction on each core, in bytes.
2048
UB Read Conflict
Read conflicts of vector instructions on the UB Bank.
This field is displayed only when the data is collected by msprof op simulator.
1
UB Write Conflict
Write conflicts of vector instructions on the UB Bank.
This field is displayed only when the data is collected by msprof op simulator.
0
Vector Utilization Percentage
Utilization of the vector computing unit, in percentage.
This field is displayed only when the data is collected by msprof op simulator.
35.29
Only one BIN file can be imported at a time. Files cannot be imported in a folder.
