Merged
docs:26.2.0版本英文大模型检查 #596
cai-weiwei1989Add on Oct 22
docs:26.2.0版本英文大模型检查 #596
Merged
cai-weiwei1989Add on Oct 22
Total: 17 files changed+183-185
@@ -93,8 +93,6 @@ We welcome everyone to contribute to the community. If you have any questions or
93 93 
94## 🙏 Acknowledgments94## 🙏 Acknowledgments
95 95 
96-This tool is contributed by the following Huawei department:96+This tool is jointly contributed by Huawei Technologies Co., Ltd. and community developers.
97- 
98-🔹 Ascend Computing MindStudio Development Department
99 97 
100Thank you to everyone in the community for your PRs. We warmly welcome your contributions.98Thank you to everyone in the community for your PRs. We warmly welcome your contributions.
@@ -10,7 +10,7 @@ This chapter provides performance tuning cases for typical performance tuning sc
10 10 
11- Model Code11- Model Code
12 - [Optimizing Operators with Long Execution Time](code_high_latency_function.md)12 - [Optimizing Operators with Long Execution Time](code_high_latency_function.md)
13- - [Dispatch Performance Below Expectations](dispatch_small_batch_performance.md)13+ - [Dispatch Performance Below Expectation](dispatch_small_batch_performance.md)
14 - [High Latency in Operator Compilation](operator_compilation_latency.md)14 - [High Latency in Operator Compilation](operator_compilation_latency.md)
15 - [Frequent Calls to Synchronous APIs](sync_api_frequent_call.md)15 - [Frequent Calls to Synchronous APIs](sync_api_frequent_call.md)
16- System scheduling16- System scheduling
@@ -32,7 +32,7 @@ Therefore, you can use the stack call stack feature of profiler to additionally
32 32 
331. Most stream synchronization operations are introduced manually or by the application logic. Therefore, first check the workload code and evaluate the necessity of the API calls from the perspective of the workload logic. Remove unnecessary synchronization APIs as appropriate.331. Most stream synchronization operations are introduced manually or by the application logic. Therefore, first check the workload code and evaluate the necessity of the API calls from the perspective of the workload logic. Remove unnecessary synchronization APIs as appropriate.
34 34 
35-2. In addition, some stream synchronization services may be introduced by environment variables. For example, [ASCEND_LAUNCH_BLOCKING](https://gitcode.com/Ascend/pytorch/blob/v2.14.0-26.2.0/docs/en/api/environment_variable/op_execution/ASCEND_LAUNCH_BLOCKING.md) performs stream synchronization on each operator to locate problems.35+2. In addition, some stream synchronization services may be introduced by environment variables. For example, [ASCEND_LAUNCH_BLOCKING](https://gitcode.com/Ascend/pytorch/blob/v2.14.0-26.2.0/docs/en/api/environment_variable/ASCEND_LAUNCH_BLOCKING.md) performs stream synchronization on each operator to locate problems.
36 36 
37## 6. Troubleshooting Methodology Summary37## 6. Troubleshooting Methodology Summary
38 38 
@@ -46,7 +46,7 @@ For details, see the following figure.
46 data_simplification=False,46 data_simplification=False,
47 host_sys=[torch_npu.profiler.HostSystem.OSRT], # Collect process-level system calls47 host_sys=[torch_npu.profiler.HostSystem.OSRT], # Collect process-level system calls
48 )48 )
49- 49+ 
50 # Add the basic profiling configuration parameters. For details, see the parameter descriptions below.50 # Add the basic profiling configuration parameters. For details, see the parameter descriptions below.
51 with torch_npu.profiler.profile(51 with torch_npu.profiler.profile(
52 activities=[52 activities=[
@@ -56,7 +56,7 @@ For details, see the following figure.
56 schedule=torch_npu.profiler.schedule(wait=0, warmup=0, active=1, repeat=1, skip_first=0), # Used with prof.step()56 schedule=torch_npu.profiler.schedule(wait=0, warmup=0, active=1, repeat=1, skip_first=0), # Used with prof.step()
57 on_trace_ready=torch_npu.profiler.tensorboard_trace_handler("./result"),57 on_trace_ready=torch_npu.profiler.tensorboard_trace_handler("./result"),
58 experimental_config=experimental_config) as prof:58 experimental_config=experimental_config) as prof:
59- 59+ 
60 # Start profile data collection.60 # Start profile data collection.
61 for step in range(steps): # Training iterations61 for step in range(steps): # Training iterations
62 train_one_step() # Training function62 train_one_step() # Training function
@@ -98,7 +98,7 @@ For details, see the following figure.
98 | Count | Number of calls to the API. |98 | Count | Number of calls to the API. |
99 | Avg(us), Max(us), Min(us) | The average, maximum, and minimum duration of this API call, in us. |99 | Avg(us), Max(us), Min(us) | The average, maximum, and minimum duration of this API call, in us. |
100 100 
101- As shown above, system calls such as futex, ioctl, and `pthread_mutex_unlock` have relatively high latency and require further analysis.101+ As shown above, system calls such as `futex`, `ioctl`, and `pthread_mutex_unlock` have relatively high latency and require further analysis.
102 102 
103## 5. Root Cause103## 5. Root Cause
104 104 
@@ -1,7 +1,7 @@
1 1 
2# Background2# Background
3 3 
4-Inheriting the full-process hardware and software scheduling capabilities of the generation chip, this feature mainly extends the tuning capabilities for scheduling, computation and communication, AI Core computation units, and system hardware metrics of the 950PR&950DT chips, supporting performance tuning analysis.4+Inheriting the full-process hardware and software scheduling capabilities of the generation chip, this feature mainly extends the tuning capabilities for scheduling, computation and communication, AI Core computation units, and system hardware metrics of the Ascend 950PR&950DT chips, supporting performance tuning analysis.
5 5 
6# Use Cases6# Use Cases
7 7 
@@ -9,7 +9,7 @@ Inheriting the full-process hardware and software scheduling capabilities of the
9 9 
10Feature 1: Presenting D/U-Die bandwidth information10Feature 1: Presenting D/U-Die bandwidth information
11 11 
12-Usage Restriction: 950PR&950DT form factor12+Usage Restriction: Ascend 950PR&950DT form factor
13 13 
14Usage constraint: NA14Usage constraint: NA
15 15 
@@ -23,7 +23,7 @@ DFX design:
23 23 
24Feature 2: Presenting fusion tasks24Feature 2: Presenting fusion tasks
25 25 
26-Usage Restriction: 950PR&950DT form factor26+Usage Restriction: Ascend 950PR&950DT form factor
27 27 
28Usage constraint: NA28Usage constraint: NA
29 29 
@@ -31,13 +31,13 @@ DFX design:
31 31 
32- Compatibility: This is a new feature for this chip generation and does not involve compatibility issues.32- Compatibility: This is a new feature for this chip generation and does not involve compatibility issues.
33- Maintainability: NA33- Maintainability: NA
34-- Reliability: A fusion task includes subtask types such as AIC, AICPU, and CCU. Add subtask range checks.34+- Reliability: A fusion task includes subtask types such as AIC, AI CPU, and CCU. Add subtask range checks.
35 35 
36---36---
37 37 
38Feature 3: Statistics and presentation of DPU operator execution time38Feature 3: Statistics and presentation of DPU operator execution time
39 39 
40-Usage Restriction: 950PR&950DT form factor, using DPU for computation40+Usage Restriction: Ascend 950PR&950DT form factor, using DPU for computation
41 41 
42Usage constraint: NA42Usage constraint: NA
43 43 
@@ -51,7 +51,7 @@ DFX design:
51 51 
52Feature 4: Inheriting features across chip generations52Feature 4: Inheriting features across chip generations
53 53 
54-Usage Restriction: 950PR&950DT chips54+Usage Restriction: Ascend 950PR&950DT chips
55 55 
56Usage constraint: NA56Usage constraint: NA
57 57 
@@ -66,7 +66,7 @@ DFX design:
661. Design approach661. Design approach
67 67 
68 ```text68 ```text
69- 950PR&950DT All-Scenario Architecture Diagram69+ Ascend 950PR&950DT All-Scenario Architecture Diagram
70 70 
71 ┌───────────────────────────────────────────────────────────────────────────────┐71 ┌───────────────────────────────────────────────────────────────────────────────┐
72 │ AI Framework │72 │ AI Framework │
@@ -89,23 +89,23 @@ DFX design:
89 ┌───────────────────────────────────────────────────────────────────────────────┐89 ┌───────────────────────────────────────────────────────────────────────────────┐
90 │ NPU │90 │ NPU │
91 │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │91 │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │
92- │ │ │ │ │ │ AICPU │ │ │ │92+ │ │ │ │ │ │ AI CPU │ │ │ │
93 │ │ LP │ │ │ └──────────────┘ │ │ │93 │ │ LP │ │ │ └──────────────┘ │ │ │
94 │ │ │ │ │ ┌──────────────┐ │ │ │94 │ │ │ │ │ ┌──────────────┐ │ │ │
95 │ └──────────────┘ │ │ │ CCU │ │ │ │95 │ └──────────────┘ │ │ │ CCU │ │ │ │
96 │ ┌──────────────┐ │ Stars │ └──────────────┘ │ UB │ │96 │ ┌──────────────┐ │ Stars │ └──────────────┘ │ UB │ │
97 │ │ │ │ │ ┌──────────────┐ │ │ │97 │ │ │ │ │ ┌──────────────┐ │ │ │
98- │ │ L2 Cache │ │ │ │ AICore │ │ │ │98+ │ │ L2 Cache │ │ │ │ AI Core │ │ │ │
99 │ │ │ │ │ └──────────────┘ │ │ │99 │ │ │ │ │ └──────────────┘ │ │ │
100 │ └──────────────┘ └──────────────┘ └───────────────┘ │100 │ └──────────────┘ └──────────────┘ └───────────────┘ │
101 └───────────────────────────────────────────────────────────────────────────────┘101 └───────────────────────────────────────────────────────────────────────────────┘
102 102 
103 ```103 ```
104 104 
105- The full-process hardware and software scheduling capabilities of the generation chip, combined with the 950PR&950DT chip capabilities, mainly extend tuning capabilities in multiple areas such as the scheduler, computation and communication paths, AI Core computation units, and system-level hardware metrics.105+ The full-process hardware and software scheduling capabilities of the generation chip, combined with the Ascend 950PR&950DT chip capabilities, mainly extend tuning capabilities in multiple areas such as the scheduler, computation and communication paths, AI Core computation units, and system-level hardware metrics.
106 106 
107 - Add the fusion task type to the Stars scheduler.107 - Add the fusion task type to the Stars scheduler.
108- - Support inter-die bandwidth for AICore computing units.108+ - Support inter-die bandwidth for AI Core computing units.
109 - Support DPU operator scheduling and execution.109 - Support DPU operator scheduling and execution.
110 - Present CCU communication instructions and bandwidth.110 - Present CCU communication instructions and bandwidth.
111 111 
@@ -133,7 +133,7 @@ DFX design:
133 133 
134 A fusion task includes the following types of subtasks:134 A fusion task includes the following types of subtasks:
135 - AIC/AIV135 - AIC/AIV
136- - AICPU136+ - AI CPU
137 - CCU137 - CCU
138 138 
139 DFX design139 DFX design
@@ -143,7 +143,7 @@ DFX design:
143 143 
144 3. DPU operator implementation144 3. DPU operator implementation
145 145 
146- ``` text146+ ```text
147 DPU Data Presentation Diagram147 DPU Data Presentation Diagram
148 148 
149 149 
@@ -163,7 +163,7 @@ DFX design:
163 163 
164 ```164 ```
165 165 
166- The 950PR&950DT generation chip adds a DPU computing module on the Host side, which includes computing and communication tasks, supports differentiation by Device ID, and separates the DPU and NPU IDs. Data parsing is also associated and presented through unique IDs. The timeline trace diagram adds DPU lane data for the CANN layer to support performance analysis.166+ The Ascend 950PR&950DT generation chip adds a DPU computing module on the Host side, which includes computing and communication tasks, supports differentiation by Device ID, and separates the DPU and NPU IDs. Data parsing is also associated and presented through unique IDs. The timeline trace diagram adds DPU lane data for the CANN layer to support performance analysis.
167 167 
168 **Computation tasks**: Tasks are dispatched to and executed directly by the DPU module on the host side and are not dispatched to the device.168 **Computation tasks**: Tasks are dispatched to and executed directly by the DPU module on the host side and are not dispatched to the device.
169 169 
@@ -185,7 +185,7 @@ DFX design:
185 185 
186# User Guide186# User Guide
187 187 
188-- Interface description: 950PR&950DT supports the reports parameter to control the timeline data content returned.188+- Interface description: Ascend 950PR&950DT supports the reports parameter to control the timeline data content returned.
189- Interface prototype: `msprof --reports`189- Interface prototype: `msprof --reports`
190- Input/Output parameters190- Input/Output parameters
191 191 
@@ -217,11 +217,11 @@ DFX design:
217 217 
218| Test Case | Prerequisites | Expected Input | Expected Output |218| Test Case | Prerequisites | Expected Input | Expected Output |
219| --- | --- | --- | --- |219| --- | --- | --- | --- |
220-| D/U-Die bandwidth data collection use case | The 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the newly added lane can display the D/U-Die bandwidth bar chart. |220+| D/U-Die bandwidth data collection use case | The Ascend 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the newly added lane can display the D/U-Die bandwidth bar chart. |
221-| Fusion Task presentation use case | The 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the fusion task duration information can be displayed under Ascend Hardware. |221+| Fusion Task presentation use case | The Ascend 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the fusion task duration information can be displayed under Ascend Hardware. |
222-| DPU operator duration statistics and presentation capability use case | The 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the duration of DPU tasks can be displayed under the newly added CANN: DPU. |222+| DPU operator duration statistics and presentation capability use case | The Ascend 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and the duration of DPU tasks can be displayed under the newly added CANN: DPU. |
223-| msprof command line supports the reports parameter use case | The 950PR&950DT CANN software package is correctly installed.<br />The built-in reports_sample_config.json (only "ascend: true" is configured, and all others are false). | Execute the business application through msprof: msprof --output=* ./main [args] --reports="reports_sample_config.json" | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and only the AscendHardware lane is displayed. |223+| msprof command line supports the reports parameter use case | The Ascend 950PR&950DT CANN software package is correctly installed.<br />The built-in reports_sample_config.json (only "ascend: true" is configured, and all others are false). | Execute the business application through msprof: msprof --output=* ./main [args] --reports="reports_sample_config.json" | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. Timeline data is generated, and only the AscendHardware lane is displayed. |
224-| msprof command line supports parsing and exporting DB by default | The 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. The generated deliverables include DB files. |224+| msprof command line supports parsing and exporting DB by default | The Ascend 950PR&950DT CANN software package is correctly installed. | Execute the business application through msprof: msprof --output=* ./main [args] | 1. PROF performance data is collected, and a message indicating automatic parsing completion is printed.<br />2. The generated deliverables include DB files. |
225| | | | |225| | | | |
226 226 
227# (Optional) Drawbacks227# (Optional) Drawbacks
@@ -167,8 +167,8 @@ The following table describes the common documents to be updated.
167| --- | --- |167| --- | --- |
168| `msprof --export` parameters | `en/user_guide/msprof_parsing_instruct.md` |168| `msprof --export` parameters | `en/user_guide/msprof_parsing_instruct.md` |
169| `msprof.py import/query/export` parameters | `en/user_guide/extended_functions.md` |169| `msprof.py import/query/export` parameters | `en/user_guide/extended_functions.md` |
170-| Installation, uninstallation, and verification parameters | `en/getting_started/msprof_install_guide.md` |170+| Installation, uninstallation, and verification parameters | `en/install_guide/msprof_install_guide.md` |
171-| Quick Start paths or basic examples | `en/getting_started/quick_start.md` |171+| Quick Start paths or basic examples | `en/quick_start/quick_start.md` |
172 172 
173### 5.2 Adding Parsing Capabilities173### 5.2 Adding Parsing Capabilities
174 174 
@@ -265,8 +265,8 @@ Development changes to msProf usually directly affect the documentation. It is f
265 265 
266| Change Content | Document to Update |266| Change Content | Document to Update |
267| --- | --- |267| --- | --- |
268-| Installation methods, dependencies, or packaging parameters | `en/getting_started/msprof_install_guide.md` |268+| Installation methods, dependencies, or packaging parameters | `en/install_guide/msprof_install_guide.md` |
269-| Basic usage workflows or examples | `en/getting_started/quick_start.md` |269+| Basic usage workflows or examples | `en/quick_start/quick_start.md` |
270| Parsing workflows or command-line parameters | `en/user_guide/msprof_parsing_instruct.md` |270| Parsing workflows or command-line parameters | `en/user_guide/msprof_parsing_instruct.md` |
271| Script capabilities or advanced usage | `en/user_guide/extended_functions.md` |271| Script capabilities or advanced usage | `en/user_guide/extended_functions.md` |
272| Exported files, fields, or layers | `en/user_guide/profile_data_file_references.md` |272| Exported files, fields, or layers | `en/user_guide/profile_data_file_references.md` |
@@ -12,11 +12,11 @@ If you need to upgrade this tool separately or use the latest version, you can i
12 12 
13### 2.1 Online Installation13### 2.1 Online Installation
14 14 
15-If your device has Internet access, you can run a single command to automatically download and install the tool. Visit the Visit the Ascend community's [MindStudio download page](https://www.hiascend.com/developer/software/mindstudio/download), select the target CANN version, and choose "Online Installation". The system will guide you through the subsequent operations.15+If your device has Internet access, you can run a single command to automatically download and install the tool. Visit the Ascend community's [MindStudio download page](https://www.hiascend.com/developer/software/mindstudio/download), select the target CANN version, and choose "Online Installation". The system will guide you through the subsequent operations.
16 16 
17### 2.2 Offline Installation17### 2.2 Offline Installation
18 18 
19-For devices that are not connected to the Internet, such as those on an enterprise intranet, download the complete offline installation package on a device that has Internet access and then transfer the package to the target device for installation. Visit the Visit the Ascend community's [MindStudio download page](https://www.hiascend.com/developer/software/mindstudio/download), select the target CANN version, and choose "offline installation". The system will guide you through the subsequent operations.19+For devices that are not connected to the Internet, such as those on an enterprise intranet, download the complete offline installation package on a device that has Internet access and then transfer the package to the target device for installation. Visit the Ascend community's [MindStudio download page](https://www.hiascend.com/developer/software/mindstudio/download), select the target CANN version, and choose "offline installation". The system will guide you through the subsequent operations.
20 20 
21### 2.3 Source Installation21### 2.3 Source Installation
22 22 
@@ -132,7 +132,7 @@ To uninstall the tool, perform the following steps:
132 132 
133Upgrades follow the "uninstall first, then install" process. Simply run the installation command. The tool will automatically remove the previous version and guide you through the upgrade process.133Upgrades follow the "uninstall first, then install" process. Simply run the installation command. The tool will automatically remove the previous version and guide you through the upgrade process.
134 134 
135-You can run the `msprof` `--version` command to view the version information of the current environment, and then select the version to upgrade. When upgrading, pay attention to the version compatibility. For details, see *[Release Notes](https://gitcode.com/Ascend/release-management/blob/master/MindStudio/26.2.0/release_notes.md)*.135+msProf is integrated into CANN. When upgrading the software, ensure that the MindStudio and CANN versions are compatible. For details, see *[Release Notes](https://gitcode.com/Ascend/release-management/blob/master/MindStudio/26.2.0/release_notes.md)*.
136 136 
137## 6. Appendixes137## 6. Appendixes
138 138 
@@ -148,7 +148,7 @@ MindStudio Profiler (msProf) supports building from source. During the build pro
148 148 
149If an exception occurs during operation, the tool will exit the process and print error messages. This is expected behavior. You are advised to locate the specific cause of the error based on the error prompts, such as by viewing log files or result files generated during the collection and parsing process.149If an exception occurs during operation, the tool will exit the process and print error messages. This is expected behavior. You are advised to locate the specific cause of the error based on the error prompts, such as by viewing log files or result files generated during the collection and parsing process.
150 150 
151-## strace Usage151+## Strace Usage
152 152 
153In some msProf debugging scenarios, you are advised to use strace to trace system calls. While using strace itself does not present a security risk, you should note the following points:153In some msProf debugging scenarios, you are advised to use strace to trace system calls. While using strace itself does not present a security risk, you should note the following points:
154 154 
@@ -52,7 +52,7 @@ source /dev/stdin <<< "$(dev_id=$(lspci -n -D | grep -o '19e5:d[0-9a-f]\{3\}' |
52 52 
53If the command outputs `[PASS]`, the operation is successful. If it outputs `[FAIL]`, the possible causes are as follows:53If the command outputs `[PASS]`, the operation is successful. If it outputs `[FAIL]`, the possible causes are as follows:
54 54 
55-1. The hardware is outside the supported scope of this tutorial: this learning environment supports only Atlas inference products, Atlas A2 products, Atlas A3 products, and 950PR&950DT products. Switch to a compatible hardware environment and try again.55+1. The hardware is outside the supported scope of this tutorial: this learning environment supports only Atlas inference products, Atlas A2 products, Atlas A3 products, and Ascend 950PR&950DT products. Switch to a compatible hardware environment and try again.
562. The underlying environment is abnormal: `lspci` is not installed, or the current user cannot query the NPU PCI ID using `lspci -n -D`. Contact the environment administrator to verify the underlying environment.562. The underlying environment is abnormal: `lspci` is not installed, or the current user cannot query the NPU PCI ID using `lspci -n -D`. Contact the environment administrator to verify the underlying environment.
57 57 
58#### 2.1.3 Host: Pulling the Image58#### 2.1.3 Host: Pulling the Image
@@ -220,7 +220,7 @@ PROF_XXX
220└── mindstudio_profiler_output # Aggregated profile data from the host and each device220└── mindstudio_profiler_output # Aggregated profile data from the host and each device
221 ├── msprof_{timestamp}.json # Timeline data in Chrome Trace format221 ├── msprof_{timestamp}.json # Timeline data in Chrome Trace format
222 ├── op_statistic_{timestamp}.csv # Statistics aggregated by operator type222 ├── op_statistic_{timestamp}.csv # Statistics aggregated by operator type
223- ├── op_summary_{timestamp}.csv # Detailed data for AICore and AICPU operators223+ ├── op_summary_{timestamp}.csv # Detailed data for AI Core and AI CPU operators
224 └── ...224 └── ...
225```225```
226 226 
@@ -239,7 +239,7 @@ You can sort the data by `Total Time(us)` in descending order and focus first on
239 239 
240Records detailed execution information for each operator task. The fields may vary depending on the product version and collection parameters. The following example is for reference only.240Records detailed execution information for each operator task. The fields may vary depending on the product version and collection parameters. The following example is for reference only.
241 241 
242-You can sort the data by `Task Duration(us)` in descending order to locate long-running tasks, and then check `Task Type` to view the distribution of tasks on AICore and AICPU.242+You can sort the data by `Task Duration(us)` in descending order to locate long-running tasks, and then check `Task Type` to view the distribution of tasks on AI Core and AI CPU.
243 243 
244![op_summary CSV file](../figures/en-us_image_0000002502718556.png)244![op_summary CSV file](../figures/en-us_image_0000002502718556.png)
245<div style="text-align: center;">245<div style="text-align: center;">
@@ -5,7 +5,7 @@
5**Supported Products<a name="en-us_topic_0000001276273570_section1281125681015"></a>**5**Supported Products<a name="en-us_topic_0000001276273570_section1281125681015"></a>**
6 6 
7<!-- npu="950" id1 -->7<!-- npu="950" id1 -->
8-- 950PR&950DT products: supported8+- Ascend 950PR&950DT products: supported
9<!-- end id1 -->9<!-- end id1 -->
10<!-- npu="A3" id2 -->10<!-- npu="A3" id2 -->
11- Atlas A3 products: supported11- Atlas A3 products: supported
@@ -83,7 +83,7 @@ In non-cluster scenarios, results are displayed as shown in [Figure 1](#en-us_to
83|Result Size|Result data size (MB)|83|Result Size|Result data size (MB)|
84|device_info|Device information|84|device_info|Device information|
85|AI Core Number|Number of AI Cores|85|AI Core Number|Number of AI Cores|
86-|AICPU Number|Number of AICPUs|86+|AI CPU Number|Number of AI CPUs|
87|Control CPU Number|Number of Control CPUs|87|Control CPU Number|Number of Control CPUs|
88|Control CPU Type|Control CPU type|88|Control CPU Type|Control CPU type|
89|Device Id|Device ID|89|Device Id|Device ID|
@@ -126,7 +126,7 @@ In non-cluster scenarios, results are displayed as shown in [Figure 1](#en-us_to
126**Supported Products<a name="en-us_topic_0000001265229666_section1281125681015"></a>**126**Supported Products<a name="en-us_topic_0000001265229666_section1281125681015"></a>**
127 127 
128<!-- npu="950" id1 -->128<!-- npu="950" id1 -->
129-- 950PR&950DT products: supported129+- Ascend 950PR&950DT products: supported
130<!-- end id1 -->130<!-- end id1 -->
131<!-- npu="A3" id2 -->131<!-- npu="A3" id2 -->
132- Atlas A3 products: supported132- Atlas A3 products: supported
@@ -204,7 +204,7 @@ To export profile data using `msprof.py`, perform the following steps:
204**Supported Products<a name="en-us_topic_0000001265229758_section17436144114294"></a>**204**Supported Products<a name="en-us_topic_0000001265229758_section17436144114294"></a>**
205 205 
206<!-- npu="950" id1 -->206<!-- npu="950" id1 -->
207-- 950PR&950DT products: supported207+- Ascend 950PR&950DT products: supported
208<!-- end id1 -->208<!-- end id1 -->
209<!-- npu="A3" id2 -->209<!-- npu="A3" id2 -->
210- Atlas A3 products: supported210- Atlas A3 products: supported
@@ -271,7 +271,7 @@ To export final timeline data or .db files, proceed to [Exporting Profile Data](
271**Supported Products<a name="en-us_topic_0000001312709849_section17436144114294"></a>**271**Supported Products<a name="en-us_topic_0000001312709849_section17436144114294"></a>**
272 272 
273<!-- npu="950" id1 -->273<!-- npu="950" id1 -->
274-- 950PR&950DT products: Supported274+- Ascend 950PR&950DT products: Supported
275<!-- end id1 -->275<!-- end id1 -->
276<!-- npu="A3" id2 -->276<!-- npu="A3" id2 -->
277- Atlas A3 products: Supported277- Atlas A3 products: Supported
@@ -353,7 +353,7 @@ After the command for querying profile data is executed, the results will be pri
353**Supported Products<a name="en-us_topic_0000001265069834_section17436144114294"></a>**353**Supported Products<a name="en-us_topic_0000001265069834_section17436144114294"></a>**
354 354 
355<!-- npu="950" id1 -->355<!-- npu="950" id1 -->
356-- 950PR&950DT products: supported356+- Ascend 950PR&950DT products: supported
357<!-- end id1 -->357<!-- end id1 -->
358<!-- npu="A3" id2 -->358<!-- npu="A3" id2 -->
359- Atlas A3 products: supported359- Atlas A3 products: supported
@@ -521,7 +521,7 @@ The following examples show the directory structure of the generated profile dat
521> For the specific models of Ascend products, see [Ascend Product Form Description](https://www.hiascend.com/document/detail/en/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html).521> For the specific models of Ascend products, see [Ascend Product Form Description](https://www.hiascend.com/document/detail/en/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html).
522 522 
523<!-- npu="950" id1 -->523<!-- npu="950" id1 -->
524-- 950PR&950DT products: supported524+- Ascend 950PR&950DT products: supported
525<!-- end id1 -->525<!-- end id1 -->
526<!-- npu="A3" id2 -->526<!-- npu="A3" id2 -->
527- Atlas A3 products: supported527- Atlas A3 products: supported
@@ -80,7 +80,7 @@ Before using this tool, understand the following constraints:
80**Supported Products**80**Supported Products**
81 81 
82<!-- npu="950" id1 -->82<!-- npu="950" id1 -->
83-- 950PR&950DT products: supported83+- Ascend 950PR&950DT products: supported
84<!-- end id1 -->84<!-- end id1 -->
85<!-- npu="A3" id2 -->85<!-- npu="A3" id2 -->
86- Atlas A3 products: supported86- Atlas A3 products: supported
@@ -272,7 +272,7 @@ The structure of the generated profile data directory is as follows:
272**Product Support**272**Product Support**
273 273 
274<!-- npu="950" id1 -->274<!-- npu="950" id1 -->
275-- 950PR&950DT products: Supported275+- Ascend 950PR&950DT products: Supported
276<!-- end id1 -->276<!-- end id1 -->
277<!-- npu="A3" id2 -->277<!-- npu="A3" id2 -->
278- Atlas A3 products: Supported278- Atlas A3 products: Supported
@@ -302,7 +302,7 @@ During profile data parsing, the profile data file information is automatically
302- Complete profile data collection first.302- Complete profile data collection first.
303- The constraints in Ascend RC scenarios are the same as those described in [Preparations](#preparations).303- The constraints in Ascend RC scenarios are the same as those described in [Preparations](#preparations).
304 304 
305-**Syntax<a name="en-us__topic_0000001265069802_section427441453914"></a>**305+**Syntax<a name="en-us_topic_0000001265069802_section427441453914"></a>**
306 306 
307```bash307```bash
308msprof --query=on --output=<dir>308msprof --query=on --output=<dir>
@@ -355,7 +355,7 @@ msprof --export=on --output=/home/profiler_data/PROF_XXX --model-id=3 --iteratio
355 355 
356<!-- npu="950" id1 -->356<!-- npu="950" id1 -->
357 357 
358-- 950PR&950DT products: Supported358+- Ascend 950PR&950DT products: Supported
359 <!-- end id1 -->359 <!-- end id1 -->
360 <!-- npu="A3" id2 -->360 <!-- npu="A3" id2 -->
361- Atlas A3 products: Supported361- Atlas A3 products: Supported
@@ -421,7 +421,7 @@ Running the preceding command generates a `sqlite` directory containing `.db` fi
421**Supported Products<a name="en-us_topic_0000001631250206_en-us_topic_0000002111094444_section5889102116569"></a>**421**Supported Products<a name="en-us_topic_0000001631250206_en-us_topic_0000002111094444_section5889102116569"></a>**
422 422 
423<!-- npu="950" id1 -->423<!-- npu="950" id1 -->
424-- 950PR&950DT products: Supported424+- Ascend 950PR&950DT products: Supported
425<!-- end id1 -->425<!-- end id1 -->
426<!-- npu="A3" id2 -->426<!-- npu="A3" id2 -->
427- Atlas A3 products: Supported427- Atlas A3 products: Supported
@@ -458,7 +458,7 @@ Parses communication profile data into statistics on segment duration, copy oper
458<!-- npu="950" id7 -->458<!-- npu="950" id7 -->
459> [!NOTE]459> [!NOTE]
460>460>
461-> Because communication matrix data collection is not supported in CCU scenarios on 950PR&950DT products, the deliverables related to this feature are not useful for reference.461+> Because communication matrix data collection is not supported in CCU scenarios on Ascend 950PR&950DT products, the deliverables related to this feature are not useful for reference.
462<!-- end id7 -->462<!-- end id7 -->
463 463 
464**Syntax<a name="en-us_topic_0000001631250206_section916018568431"></a>**464**Syntax<a name="en-us_topic_0000001631250206_section916018568431"></a>**
@@ -335,7 +335,7 @@ There is no enable or disable option for this table.
335 335 
336|Field|Type|Description|336|Field|Type|Description|
337|--|--|--|337|--|--|--|
338-|id|INTEGER|Device ID. The value `–1` indicates that the device ID was not collected.|338+|id|INTEGER|Device ID. The value `-1` indicates that the device ID was not collected.|
339|name|TEXT|Chip model of the device.|339|name|TEXT|Chip model of the device.|
340 340 
341## `HOST_INFO`341## `HOST_INFO`
@@ -398,8 +398,8 @@ This table is controlled by `--task-time`.
398|attrInfo|INTEGER|Operator attribute information used to describe the operator shape and custom operator parameters. The value maps to `STRING_IDS(attrInfo)`.|398|attrInfo|INTEGER|Operator attribute information used to describe the operator shape and custom operator parameters. The value maps to `STRING_IDS(attrInfo)`.|
399|opState|INTEGER|Indicates whether an operator is dynamic or static. Valid values: `dynamic`, `static`, and `N/A` (unidentified scenario or operator). The value maps to `STRING_IDS(opState)`.|399|opState|INTEGER|Indicates whether an operator is dynamic or static. Valid values: `dynamic`, `static`, and `N/A` (unidentified scenario or operator). The value maps to `STRING_IDS(opState)`.|
400|hf32Eligible|INTEGER|Indicates whether the HF32 precision flag is used. Valid values: `YES` (used), `NO` (not used), and `N/A` (unidentified scenario or operator). The value maps to `STRING_IDS(hf32Eligible)`.|400|hf32Eligible|INTEGER|Indicates whether the HF32 precision flag is used. Valid values: `YES` (used), `NO` (not used), and `N/A` (unidentified scenario or operator). The value maps to `STRING_IDS(hf32Eligible)`.|
401-|gridDim|INTEGER|Indicates the number of thread blocks enabled in the thread block grid of the SIMT thread model. At any given time, one AIV core executes only one thread block task. Only 950PR&950DT products support this field. STRING_IDS(gridDim)|401+|gridDim|INTEGER|Indicates the number of thread blocks enabled in the thread block grid of the SIMT thread model. At any given time, one AIV core executes only one thread block task. Only Ascend 950PR&950DT products support this field. STRING_IDS(gridDim)|
402-|blockDim|INTEGER|Indicates the number of threads enabled in a thread block of the SIMT thread model. A thread block can enable up to 2048 threads. Only 950PR&950DT products support this field. STRING_IDS(blockDim)|402+|blockDim|INTEGER|Indicates the number of threads enabled in a thread block of the SIMT thread model. A thread block can enable up to 2048 threads. Only Ascend 950PR&950DT products support this field. STRING_IDS(blockDim)|
403 403 
404## `COMMUNICATION_TASK_INFO`404## `COMMUNICATION_TASK_INFO`
405 405 
@@ -484,7 +484,7 @@ This table is controlled by `--sys-hardware-mem` and `--sys-hardware-mem-freq`.
484|eventName|NUMERIC|QoS event name, which maps to `STRING_IDS(eventName)`|484|eventName|NUMERIC|QoS event name, which maps to `STRING_IDS(eventName)`|
485|bandwidth|NUMERIC|Bandwidth at the time of the QoS event (bytes/s)|485|bandwidth|NUMERIC|Bandwidth at the time of the QoS event (bytes/s)|
486|timestampNs|NUMERIC|Local time (ns)|486|timestampNs|NUMERIC|Local time (ns)|
487-|dieId|INTEGER|dieId used to distinguish chip scenarios, supported only by 950PR&950DT products<br>For Atlas 200I/500 A2 inference products, Atlas A2 products, and Atlas A3 products, chip scenario distinction is not supported, and the default value is -1, indicating that the current chip scenario has no dieId content distinction|487+|dieId|INTEGER|dieId used to distinguish chip scenarios, supported only by Ascend 950PR&950DT products<br>For Atlas 200I/500 A2 inference products, Atlas A2 products, and Atlas A3 products, chip scenario distinction is not supported, and the default value is -1, indicating that the current chip scenario has no dieId content distinction|
488 488 
489## `AICORE_FREQ`489## `AICORE_FREQ`
490 490 
@@ -499,7 +499,7 @@ There is no enable or disable option for this table. It is generated automatical
499| deviceId |INTEGER|Device ID|499| deviceId |INTEGER|Device ID|
500| timestampNs |NUMERIC|Local timestamp of frequency change (ns)|500| timestampNs |NUMERIC|Local timestamp of frequency change (ns)|
501| freq |INTEGER|AI Core frequency (MHz)|501| freq |INTEGER|AI Core frequency (MHz)|
502-| dieId |INTEGER|dieId used to distinguish chip scenarios, supported only by 950PR&950DT products<br>For Atlas 200I/500 A2 inference products, Atlas A2 products, and Atlas A3 products, chip scenario distinction is not supported, and the default value is -1, indicating that the current chip scenario has no dieId content distinction|502+| dieId |INTEGER|dieId used to distinguish chip scenarios, supported only by Ascend 950PR&950DT products<br>For Atlas 200I/500 A2 inference products, Atlas A2 products, and Atlas A3 products, chip scenario distinction is not supported, and the default value is -1, indicating that the current chip scenario has no dieId content distinction|
503 503 
504## `ACC_PMU`504## `ACC_PMU`
505 505 
@@ -1126,5 +1126,5 @@ There is no enable or disable option for this table. It is generated automatical
1126 1126 
1127|Field|Type|Description|1127|Field|Type|Description|
1128|--|--|--|1128|--|--|--|
1129-|rankId|INTEGER|The value is fixed at `–1`.|1129+|rankId|INTEGER|The value is fixed at `-1`.|
1130-|deviceId|INTEGER|Device ID on the node. The value `–1` indicates that the device ID was not collected.|1130+|deviceId|INTEGER|Device ID on the node. The value `-1` indicates that the device ID was not collected.|
@@ -89,13 +89,13 @@ DFX设计:
89 ┌───────────────────────────────────────────────────────────────────────────────┐89 ┌───────────────────────────────────────────────────────────────────────────────┐
90 │ NPU │90 │ NPU │
91 │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │91 │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │
92- │ │ │ │ │ │ AICPU │ │ │ │92+ │ │ │ │ │ │ AI CPU │ │ │ │
93 │ │ LP │ │ │ └──────────────┘ │ │ │93 │ │ LP │ │ │ └──────────────┘ │ │ │
94 │ │ │ │ │ ┌──────────────┐ │ │ │94 │ │ │ │ │ ┌──────────────┐ │ │ │
95 │ └──────────────┘ │ │ │ CCU │ │ │ │95 │ └──────────────┘ │ │ │ CCU │ │ │ │
96 │ ┌──────────────┐ │ Stars │ └──────────────┘ │ UB │ │96 │ ┌──────────────┐ │ Stars │ └──────────────┘ │ UB │ │
97 │ │ │ │ │ ┌──────────────┐ │ │ │97 │ │ │ │ │ ┌──────────────┐ │ │ │
98- │ │ L2 Cache │ │ │ │ AICore │ │ │ │98+ │ │ L2 Cache │ │ │ │ AI Core │ │ │ │
99 │ │ │ │ │ └──────────────┘ │ │ │99 │ │ │ │ │ └──────────────┘ │ │ │
100 │ └──────────────┘ └──────────────┘ └───────────────┘ │100 │ └──────────────┘ └──────────────┘ └───────────────┘ │
101 └───────────────────────────────────────────────────────────────────────────────┘101 └───────────────────────────────────────────────────────────────────────────────┘
@@ -133,7 +133,7 @@ DFX设计:
133 133 
134 Fusion Task包含几类子任务:134 Fusion Task包含几类子任务:
135 - AIC/AIV135 - AIC/AIV
136- - AICPU136+ - AI CPU
137 - CCU137 - CCU
138 138 
139 DFX设计139 DFX设计
@@ -143,7 +143,7 @@ DFX设计:
143 143 
144 3. DPU算子功能实现设计144 3. DPU算子功能实现设计
145 145 
146- ``` text146+ ```text
147 DPU 数据呈现展示图147 DPU 数据呈现展示图
148 148 
149 149 
@@ -132,7 +132,7 @@ msprof --help
132 132 
133升级即“先卸后装”。直接执行安装命令,工具将自动卸载旧版本,并引导您完成覆盖安装。133升级即“先卸后装”。直接执行安装命令,工具将自动卸载旧版本,并引导您完成覆盖安装。
134 134 
135-可通过`msprof --version`命令查看当前环境的版本信息,再选择需要升级的版本。升级版本时需要关注版本配套关系,请参见《[版本说明](https://gitcode.com/Ascend/release-management/blob/master/MindStudio/26.2.0/release_notes.md)》。135+msProf工具集成于CANN中,升级版本时需要关注MindStudio与CANN的版本配套关系,请参见《[版本说明](https://gitcode.com/Ascend/release-management/blob/master/MindStudio/26.2.0/release_notes.md)》。
136 136 
137## 6. 附录137## 6. 附录
138 138 
@@ -14,7 +14,7 @@ To address this issue, the GIL Tracer tool is developed by integrating openEuler
14 14 
15## Preparations15## Preparations
16 16 
17- 1. Install `sysTrace`. For details, see [sysTrace Installation Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/en/installation.md).17+ 1. Install `sysTrace`. For details, see [sysTrace Installation Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/zh/installation.md).
18 2. Add the `sysTrace` binary to the `PATH` environment variable.18 2. Add the `sysTrace` binary to the `PATH` environment variable.
19 19 
20 ```bash20 ```bash
@@ -22,8 +22,8 @@ To address this issue, the GIL Tracer tool is developed by integrating openEuler
22 ```22 ```
23 23 
24 3. Configure `sysTrace` environment variables, including:24 3. Configure `sysTrace` environment variables, including:
25- 1. Runtime dependencies. For details, see [sysTrace User Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/en/introduction.md).25+ 1. Runtime dependencies. For details, see [sysTrace User Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/zh/introduction.md).
26- 2. Logging and data directory configurations. For details, see [sysTrace Data Collection Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/en/data_collection.md).26+ 2. Logging and data directory configurations. For details, see [sysTrace Data Collection Guide](https://gitcode.com/openeuler/sysTrace/blob/master/docs/zh/data_collection.md).
27 4. Obtain the collection and conversion scripts `gil_trace_record.py` and `gil_trace_convert.py`, and the file utility script `file_manager.py` provided in the repository. Synchronous collection of Profiler and GIL data is recommended.27 4. Obtain the collection and conversion scripts `gil_trace_record.py` and `gil_trace_convert.py`, and the file utility script `file_manager.py` provided in the repository. Synchronous collection of Profiler and GIL data is recommended.
28 28 
29## GIL Data Collection29## GIL Data Collection
@@ -104,7 +104,7 @@ python3 entrance.py bind [-l] [-c <config_path>]
104 6. Bind interrupts `3008`, `3009`, `3264`, `3265`, `2496`, `2497`, `2752`, and `2753` to CPUs `15`, `16`, `27`, `28`, `64`, `65`, `76`, and `77`, respectively.104 6. Bind interrupts `3008`, `3009`, `3264`, `3265`, `2496`, `2497`, `2752`, and `2753` to CPUs `15`, `16`, `27`, `28`, `64`, `65`, `76`, and `77`, respectively.
105- Example 2105- Example 2
106 106 
107- ```python107+ ```bash
108 python3 entrance.py bind108 python3 entrance.py bind
109 ```109 ```
110 110