CPU, Memory, and Network usage data, that is, numeric events, are displayed in bar charts on the timeline, as shown by 3 in Figure 1. The preview function is not supported.
You can import and display cluster data to MindStudio Insight without manually merging multiple single-card data. MindStudio Insight supports multiple hosts and cards in the training scenario and multiple cards in the inference scenario. It can automatically identify all trace_view.json and msprof*.json files in the imported folder. Figure 2 shows the timeline data of 16 cards.
In a cluster scenario, you can hover the pointer over the card number to quickly locate the file directory corresponding to the card data. The file directory corresponding to the card is displayed. For example, if you hover the pointer over 0, the file directory corresponding to the card is displayed, as shown in Figure 3.
When filtering data by card and unit, you can select the card and unit in sequence to display the filtering information.
in the upper left corner of the page, select Card Filter, click the text box, and select 1 from the drop-down list. The timeline information of card 1 is displayed, as shown in Figure 4.
on the toolbar in the upper left corner of the page, choose Units Filter, and click the text box. Select Overlap Analysis from the drop-down list. The timeline information of the Overlap Analysis unit is displayed, as shown in Figure 5.
If the level-2 and level-3 units in the pinned card are also pinned, you can only drag and drop the card-level units. Similarly, if the level-3 units in the pinned level-2 units are also pinned, you can only drag and drop the level-2 units.
For example, click
next to a level-3 unit name in cards 0, 1, and 2 to pin the unit name. Click
again to unpin the unit name, as shown in Figure 6.
Right-click a pinned unit and choose Unpin (Same Group group name) or Unpin (all) from the shortcut menu to unpin the unit, as shown in Figure 8.
Click Unpin (Same Group group name) to unpin all units in the communication group, and click Unpin (all) to unpin all pinned units.
In the single-card, cluster, and multi-model scenarios, the relative positions of timelines are automatically aligned. If automatic alignment is not required, right-click anywhere, choose Recover cards default offset from the shortcut menu to restore the default offsets of all cards and models, and manually align the relative positions.
In the Offset dialog box, click
(Align to Start). The offset of the leftmost thread data in the card from the initial position (00:00.000) of the timeline is displayed in the Timestamp Offset(ns) text box. Then press Enter. The Timeline tab page aligns the thread data with the initial position of the timeline.
As shown in Figure 9, the offset of the leftmost thread data on card 0 from the initial position of the timeline is 7,293,500 ns.
In the multi-host multi-card scenario, the time on the host may be inaccurate. As a result, the relative positions of timelines of multiple cards may be inaccurate. MindStudio Insight supports time calibration in the single-card dimension, as shown in Figure 10. You can set the offset to move the timeline of a single card leftward or rightward to calibrate the time. The unit of the offset is ns. A negative value indicates rightward movement, and a positive value indicates leftward movement.
To calibrate time more flexibly, MindStudio Insight also supports time calibration by unit, as shown in Figure 11. On the Timeline tab page, expand the card, click Offset next to the required level-2 unit name, enter a value in the text box, and press Enter to adjust the unit time. In the DB scenario, you need to expand the host name and adjust the time on the level-2 units under host and each card.
When multiple hosts and cards are imported, data can be displayed by host in MindStudio Insight, as shown in Figure 12.
If the imported DB file contains the HOST_INFO table, this configuration item is displayed on the System View tab page (when Stats System View or Expert System View is selected) and the Find tab page on the Timeline tab page.
This function can be displayed only in the unified DB scenario.
or press K to mark and save the selected area, as shown in Figure 13.
Double-click a marker to set the marker pair attributes. You can modify the marker pair name and color, and delete the marker pair, as shown in Figure 14.
Double-click a marker to set its attributes. You can modify the marker name and color, and delete the marker.
on the toolbar in the upper left corner to view all marker information, as shown in Figure 16.
icon corresponding to a marker to delete the marker.
icon corresponding to the marker to go to the marker page.
on the toolbar in the upper left corner of the page. In the dialog box that is displayed, you can select one or more flow types. Alternatively, you can search for a flow type by keyword in the search box and select the corresponding flow type. All flows of the corresponding type are displayed in the graphical pane, as shown in Figure 18.
A maximum of 10 flow types can be selected.
The mappings between the application-layer operators and the NPU operators delivered and executed through flows are as follows:
When data of more than 16 cards is imported to MindStudio Insight, you can selectively analyze the data on the Timeline tab page. You can perform one-click global analysis or partial analysis.
next to Rank ID to analyze the data of the selected card, as shown in Figure 20. After the card data is analyzed, the button disappears, as shown in card 0 and card 1 in the figure.
If a large number of cards are imported, you can use the card filter function to locate the cards whose data needs to be analyzed. On the toolbar of the Timeline tab page, click
, choose Card Filter, and click the text box. Select the cards to be displayed from the drop-down list. The corresponding information is displayed on the Timeline tab page. Click
next to card ID to analyze data. As shown in Figure 21, cards 2, 5, and 7 are selected for analysis.
MindStudio Insight supports aligning the time of selected operators using the shortcut keys, which facilitates operator information comparison.
Press R (right alignment) to align the selected operator with the right boundary of the base slice, as shown in Figure 25.
Regardless of whether the selected operator is left-aligned or right-aligned, the operator in the NPU unit whose device is the same as that of the selected operator also shifts.
Right-click any position in the unit and choose Clear base slice from the shortcut menu to cancel the base slice, as shown in Figure 26.
If the operator time alignment operation has been performed, right-click any position in the unit and choose Recover cards default offset from the shortcut menu to restore the default offset, as shown in Figure 27.