MindStudio Insight allows users to import profile data files and displays related content in graphics. For details about how to collect profile data files, see Profiling Instructions.
Profile data is classified into single-card scenario and cluster scenario. For details, see Table 1. For details about how to import the data, see Importing Data.
|
Scenario |
Description |
|---|---|
|
Single-card scenario |
You can import single-card data into MindStudio Insight for analysis. When the single-card data is imported, the Timeline, Memory, and Operator tab pages are displayed on MindStudio Insight. For details, see Single-Card Scenario. |
|
Cluster scenario |
Clusters are classified into small clusters and large clusters based on the number of cards. The GUI display varies depending on the imported data. For details, see Cluster Scenario. |
|
Simplified cluster data. Cluster data is simplified to display only data of large communication operators and some computing operators. |
If the imported text profile data contains DB files, MindStudio Insight preferentially parses the DB files. If you only need to visualize the TEXT data, search for and delete the DB files in the original profile data folder, and import the data again. For details about the TEXT and DB profile data files, see Single-Card Scenario.
In the single-card scenario, profile data can be classified into the following types:
|
File |
Description |
GUI |
|---|---|---|
|
trace_view.json |
Includes application layer data, CANN layer data, and bottom-layer NPU data. |
Timeline |
|
msprof_*.json |
Indicates Timeline reports. If AI Core Freq data exists, the AI Core Freq layer is displayed. |
Timeline |
|
operator_details.csv |
Collects statistics on the duration of PyTorch operators on the host (delivery) and device (execution). |
Timeline |
|
memory_record.csv |
Indicates process-level memory allocation information. |
Memory |
|
operator_memory.csv |
Indicates operator memory allocation information. |
Memory |
|
kernel_details.csv |
Indicates information about all operators executed on the NPU. |
Operator |
|
step_trace_time.csv |
Indicates time statistics of computation and communication in a step. |
Summary |
|
communication.json |
Indicates the file that stores details about communication operators, such as communication duration and bandwidth. |
Communication |
|
communication_matrix.json |
Indicates the basic information file of small communication operators. |
Communication |
|
Note: The asterisk (*) indicates the timestamp. |
||
|
File |
Description |
GUI |
|---|---|---|
|
ascend_pytorch_profiler_{rank_id}.db |
Indicates the profile data file collected by Ascend PyTorch Profiler APIs. |
Timeline Memory Operator Summary Communication |
|
analysis.db |
Indicates data files collected in scenarios where multiple cards or clusters communicate with each other. |
MindStudio Insight allows you to import profile data directories ending with ascend_ms. For details about the profile data files, see Table 4 and Table 5.
|
File |
Description |
GUI |
|---|---|---|
|
msprof_*.json |
Indicates Timeline reports. If AI Core Freq data exists, the AI Core Freq layer is displayed. |
Timeline |
|
trace_view.json |
Includes application layer data, CANN layer data, and bottom-layer NPU data. |
Timeline |
|
memory_record.csv |
Indicates process-level memory allocation information. |
Memory |
|
operator_memory.csv |
Indicates operator memory allocation information. |
Memory |
|
static_op_mem.csv |
Indicates memory allocation information in static curve scenarios. |
Memory |
|
kernel_details.csv |
Indicates information about all operators executed on the NPU. |
Operator |
|
step_trace_time.csv |
Indicates time statistics of computation and communication in a step. |
Summary |
|
communication.json |
Indicates the file that stores details about communication operators, such as communication duration and bandwidth. |
Communication |
|
communication_matrix.json |
Indicates the basic information file of small communication operators. |
Communication |
|
Note: The asterisk (*) indicates the timestamp. |
||
|
File |
Description |
GUI |
|---|---|---|
|
ascend_mindspore_profiler_{rank_id}.db |
Indicates the profile data file collected by Ascend MindSpore Profiler APIs. |
Timeline Memory Operator Summary Communication |
|
communication_analyzer.db |
Indicates data files collected in scenarios where multiple cards or clusters communicate with each other. |
|
File |
Description |
GUI |
|---|---|---|
|
msprof_*.json |
Indicates Timeline reports. |
Timeline |
|
fusion_op_*.csv |
Indicates operator fusion summary in a model. This profile data file does not exist in single-operator scenarios. |
Timeline |
|
api_statistic_*.csv |
Indicates time spent by API execution at the CANN layer. |
Timeline |
|
memory_record_*.csv |
Indicates process-level memory allocation information. |
Memory |
|
operator_memory_*.csv |
Indicates operator memory allocation information. |
Memory |
|
op_summary_*.csv |
Indicates AI Core and AI CPU operator data. |
Operator |
|
op_statistic_*.csv |
Indicates the number of times that the AI Core and AI CPU operators are called and the time consumption. |
Operator |
|
prof_rule_0_*.json |
Indicates profiling suggestions. |
Timeline Summary Communication |
|
step_trace_*.csv |
Indicates step trace data. This profile data file does not exist in single-operator scenarios. |
- |
|
step_trace_*.json |
Indicates step trace data, which records the time required for each step. This profile data file does not exist in single-operator scenarios. |
- |
|
task_time_*.csv |
Indicates task scheduler data. |
- |
|
Note: The asterisk (*) indicates the timestamp. |
||
|
File |
Description |
GUI |
|---|---|---|
|
msprof_*.db |
Indicates a unified .db file. Currently, the data volume of this format is different from that of the data parsed by the TEXT format. |
Timeline Memory Operator Summary Communication |
|
Note: The asterisk (*) indicates the timestamp. |
||
|
File |
Description |
GUI |
|---|---|---|
|
msmonitor_{pid}_{timestamp}_{rank_id}.db |
DB file collected by npumonitor |
Timeline |
|
Scenario |
Card Count |
Data To Be Imported |
GUI Display |
|---|---|---|---|
|
Small cluster |
Up to 32 cards |
All collected raw data can be imported. |
Timeline Memory Operator Summary Communication |
|
Large cluster |
More than 32 cards, thousands of cards, and tens of thousands of cards. |
Use the cluster analysis capability of msprof-analyze in the mstt toolset to preprocess the raw profile data, obtain the communication group-based communication analysis and step duration analysis results, and import the preprocessed data. For details about how to download and use the msprof-analyze tool, see msprof-analyze.
|
Summary Communication |
|
File |
Description |
|---|---|
|
cluster_step_trace_time.csv |
Generated when the data parsing mode is communication_matrix, communication_time, or all. |
|
cluster_communication_matrix.json |
Generated when the data parsing mode is communication_matrix or all. |
|
cluster_communication.json |
Generated when the data parsing mode is communication_time or all. The data is mainly the communication time data. |
|
cluster_analysis.db |
Generated during the parsing of analysis.db or ascend_pytorch_profiler_{rank_id}.db. |
You can use the msprof-analyze tool in the mstt toolset to set the -m filter_db option to generate simplified cluster data. For details about how to install msprof-analyze, see Installing msprof-analyze. For details about how to set -m filter_db, see "filter_db" in recipe result and cluster_analysis.db deliverable table structure description. The cluster data simplification function supports only the DB scenario.