Expert system: Analyze reports
1. Expert System
The Expert System is an intelligent analysis system in Asight Systems that helps you identify common performance issues. It analyzes events in a report and provides optimization suggestions to improve performance efficiency.
1.1 Using the GUI
In the GUI, you can switch to the Expert System page by clicking its tab at the bottom of the window, as shown in the following figure.

Rule List: Lists available analysis rules.
Current parameter configuration: Displays detailed parameter information on hover.
Search Box: Use to search for or filter items.
Rule Parameter Configuration dialog: Change the configuration for the selected rule.
Displays a pie chart of the analysis results and related optimization suggestions. Use the tabs at the top to switch between them.
Displays analysis results for the selected rule. You can export the results from the context menu.
1.1.1 Setting the analysis time range
You can use the filter feature in the Timeline View to specify a time range for analysis. The Expert System analyzes events only within this range. To set the analysis range, press and hold the left mouse button in the Timeline View and drag to select a time range. Then, right-click the selection and choose "Filter and Zoom in".
1.1.2 Jumping to the Timeline View
For some rules, you can jump to the Timeline View from the context menu.
1.1.3 Analysis results pie chart
In addition to a table, the Expert System can also display analysis results as a pie chart:

In the figure above:
This pie chart groups data from the table by a selected key (such as "PID"), calculates the total duration for each group, and displays each group's percentage of the total duration. Use the combo box to change the key.
Set the number of slices to display.
The pie chart. Each slice represents a PID's total duration as a percentage of the overall duration.
The legend. The legend lists PIDs, sorted in descending order by duration.
The slices in the pie chart are clickable. Clicking a slice filters the table to show only the rows for that key, as shown in the following figure.

In the figure above, clicking the slice for PID 75614 has filtered the table to show only items with that PID, hiding all others. To reset the table, click the same slice again or click any empty area of the pie chart.
1.2 Using the CLI
Run the asys analyze subcommand to analyze an .asysrep file and generate a series of analysis reports. The syntax for the asys analyze subcommand is: asys analyze [option] <file.asysrep>.
1.2.1 Specifying the analysis rule
asys analyze supports multiple analysis rules. To view detailed descriptions of the analysis rules, run asys analyze --help-rules ALL.
Use the --rule option to specify the analysis rule. You can use this option multiple times or specify multiple rules in a comma-separated list. If you omit this option, asys analyze uses the default rule to generate the report.
For example, to generate a report by using the ppu_gaps and ppu_time_util analysis rules:
asys analyze --rule ppu_gaps,ppu_time_util report.asysrep1.2.2 Specifying the report output format
asys analyze uses the --format option to specify the output format for the statistics report. To view supported output formats and help information, run asys analyze --help-formats ALL.
column: The default format for terminal output. This format presents the report as a human-readable list. It supports the following sub-options:
unit settings: Sets the unit and precision for the output data.
csv: The default format for file output. This format is easy to export for further processing. It supports the following sub-options:
unit settings: Sets the unit and precision for the output data.
You can use the Unit Settings option to specify the unit used to display a specific type of data. The supported types and unit options are as follows:
ratio: For ratio or percentage data. Supported units:%or.1%: Precision to one decimal place..2%: Precision to two decimal places..3%: Precision to three decimal places.
For example, you can specify the output in list format, and ratio type data is accurate to three decimal places:
asys analyze -r ppu_time_util --format column:ratio=.3% report.asysrep1.2.3 Specifying the report output destination
Use the --output option to specify the report's destination. You can print it to the console, save it to a file, or pipe it to another command. By default, the command prints the report to the console.
Use --output % to print the report to the console. For example:
asys analyze --output % --rule ppu_gaps report.asysrepIf you use --output to save the output to the same directory as the asysrep report, asys generates an output filename based on the asysrep report filename, the specified analysis type, and the output format. The output filename follows the format <report_name>_<rule_name>.<format>. For example, if you use --output to generate an analysis report for report.asysrep with the ppu_gaps analysis type, the output file is named report_ppu_gaps.csv.
asys analyze --output . --rule ppu_gaps report.asysrepUse --output @post_command to pipe the output to another command for post-processing. For example, to find results containing the keyword "1142417" by using grep:
asys analyze --output "@grep 1142417" --rule ppu_gaps report.asysrep1.2.4 Specifying the analysis time range
You can use the --filter-time option to specify the time range for analysis. The format is start_time/end_time in nanoseconds. The time is an offset from the start of the trace. You can omit either the start time or the end time. For example, to analyze trace data from the 10-second mark to the 20-second mark:
asys analyze --filter-time 10000000000/20000000000 --rule ppu_gaps report.asysrepYou can use the --filter-hgtx option to specify the time range based on an HGTX annotation. If the --filter-hgtx option is specified, the --filter-time option is ignored.
The --filter-hgtx option allows you to specify the name, domain, and index of the HGTX range to match. The format is range_name@domain/index. If the HGTX range does not have a domain, you can omit @domain. Otherwise, @domain is required.
By default, asys uses the first matching HGTX range as the analysis time range. In this case, you can omit /index. To specify a different match, use /index. The index is 0-based.
For example, to use the time range of the first matching HGTX range named self_attention that has no domain:
asys analyze --filter-hgtx self_attention --rule ppu_gaps report.asysrepFor example, to use the time range of the 9th matching HGTX range (index 8) named pcclGroupEnd in the NCCL domain:
asys analyze --filter-hgtx "pcclGroupEnd@NCCL/8" --rule ppu_gaps report.asysrepTips:
The timestamp information output by
asys analyzemay vary depending on the--ruleoption. To standardize the timestamp information, specify the--ts-normalize trueoption to enable the conversion of timestamps to UTC time.asys analyzesupports the--ts-shiftoption to manually adjust the timestamp offset. You can use this option with--ts-normalize.
1.3 Expert System rules
1.3.1 PPU long idle time analysis
Analyzes and summarizes periods of long PPU idle time (PPU bubble) in an asysrep report, and outputs them in descending order of idle duration.
For each PPU device, this rule inspects each process to find idle periods that meet the specified threshold. The check occurs within the time range from the first PPU activity to the last PPU activity on that device.
Required asys trace option: --trace hggc
Analysis rule
A PPU is considered idle when none of the following activities are occurring:
kernel execution, memcpy/memset operations, or video encoding/decoding.
The rule calculates PPU idle periods on a per-process, per-PPU basis. If an idle period is longer than the threshold set by the gap parameter, the rule includes it in the statistical results.
The rule sorts and displays the results in descending order by idle duration.
The columns in the ppu_gaps table are described as follows:
Row# : Row number of the PPU gap
Duration [ns] : Duration of the PPU gap
Start [ns] : Start time of the PPU gap
PID : Process identifier
Device ID : PPU device identifierCommand-line usage
asys analyze --rule ppu_gaps report.asysrepWhen you select the ppu_gaps rule with the --rule option, you can specify related analysis parameters by appending multiple :option arguments. To view help information, run asys analyze --help-rules ppu_gaps. Examples of supported options include:
rows=<limit>: Limits the number of long PPU idle time results in the output.gap=<threshold>: Sets the time threshold for long idle periods, in milliseconds.
For example, to analyze long PPU idle time with an idle threshold of 20 ms and output the top 10 longest idle periods:
asys analyze --rule ppu_gaps:rows=10:gap=20 report.asysrepThe following is an example of the report results:
Row#,Duration,Start,PID,Device ID,
1,1232895501,126020393150,1142419,6,
2,1219910832,126016153086,1142417,4,
3,1219804936,126017799911,1142416,3,
...GUI guide
Settings
Maximum number of results: Limits the maximum number of long PPU idle time results. The default value is 50.
Minimum duration of PPU gaps in ms: Specifies the time threshold for a long idle period in
milliseconds. The default value is 500.
Table context menu features
You can highlight or zoom to the selected range in the Timeline View.
Pie Chart Statistics: Aggregates the duration of long idle periods for each process or device. Use the pie chart to identify which process or device has the most PPU bubbles.
1.3.2 PPU time utilization analysis
Description
This rule analyzes and summarizes the time utilization of PPUs in an asysrep report, outputting the results in ascending order of utilization. For each PPU device, the rule inspects each process based on the selected Range Mode. It divides the time range into equal-sized chunks and calculates the PPU time utilization for each chunk.
If you select "PPU Active Time Range" mode, the analysis time range starts from the first PPU operation on the device and ends with the last. If you select "Filtered Time Range" mode, the time range is the same as the specified filter time range. Note that this metric refers to "time" utilization, not "resource" utilization. Therefore, a simple memcpy operation contributes to utilization the same way a complex kernel does. If multiple operations overlap within the same chunk, the rule counts their combined duration only once, ensuring a chunk's utilization does not exceed 100%. The results show chunks with a utilization percentage lower than the set threshold. The rule merges consecutive low-utilization chunks into a single result with a weighted average utilization. As a result, the duration of each result may vary.
Required asys trace option: --trace hggc
Analysis rule
A PPU is busy when any of the following activities are occurring:
Executing a kernel
Executing a
memcpyormemsetoperationPerforming video encoding or decoding
At the per process, per PPU level, calculate the total active time of the PPU: the duration from the start of the first activity to the end of the last activity.
The Total active time is divided into equal-length time segments based on the chunks parameter. For each time segment, the time utilization of the PPU is calculated as follows: Busy time/Time segment length.
Time periods where the time utilization is below the threshold parameter are included in the statistics. If multiple adjacent time periods all have a utilization rate below the threshold parameter, these periods are merged, and their combined utilization rate is output as a single statistical result.
The results are sorted and displayed in ascending order of time utilization.
Tips:
For overlapping activities such as kernels or
memcpyoperations, the overlapping time is not double-counted. The time utilization of each period will not exceed 100%.In the GUI, you can specify the time range to filter by selecting a time range on the timeline interface and right-clicking
Filter and zoom in.You can adjust the
chunksandthresholdparameters to calculate the PPU time utilization for the entire report, for example:asys analyze --rule ppu_time_util:threshold=100:chunks=1:range-mode=full report.asysrep.
The columns of the ppu_time_util table are described as follows:
Row# : Row number of the chunk
In-Use [%] : Percentage of time the PPU is being used
Duration [ns] : Duration of the chunk
Start [ns] : Start time of the chunk
PID : Process identifier
Device ID : PPU device identifierCommand-line usage
asys analyze --rule ppu_time_util report.asysrepWhen you select the ppu_time_util rule with the --rule option, you can specify related analysis parameters by appending multiple :option arguments. To view help information, run asys analyze --help-rules ppu_time_util. Examples of supported options include:
rows=<limit>: Limits the number of low-PPU-utilization periods in the output.threshold=<percent>: Sets the percentage threshold for PPU busy time.chunks=<number>: The number of chunks to divide the total PPU active time into.range-mode=<mode>: The selection mode for the time range. It supports theactiveandfullmodes:active: The default mode. The time range is from the first PPU activity to the last.full: The time range is the user-specified analysis time range. If no time range is specified, the entire report's time range is used.
compute-pipe=<index_list>: The list of Compute Pipes to be included in the statistics. Multiple Pipe Indexes are separated by a/. If this parameter is not specified, all Compute Pipes are included by default. You can use this parameter to analyze time utilization when MPS mode is enabled.
For example, to analyze PPU time utilization with a utilization threshold of 60%, divide the time into 80 chunks, and output the top 20 results with the lowest utilization:
asys analyze --rule ppu_time_util:rows=20:threshold=60:chunks=80 report.asysrepThe following is an example of the report results:
Row#,In-Use,Duration,Start,PID,Device ID,
1,0.000000,12411,124667294244,1142418,5,
2,0.000000,7648,124667369358,1142419,6,
3,0.000000,7648,124667378918,1142419,6,
4,2.425268,7092,124667285970,1142418,5,
5,4.258319,7092,124667278287,1142418,5,
...GUI guide
Settings
Maximum number of results: Limits the maximum number of low PPU utilization periods. The default value is 50.
MPS Compute Pipe Index: Sets the MPS Compute Pipe index for analysis. The default is All, which analyzes all Compute Pipes.
Minimum percentage of PPU utilization: Sets the utilization threshold. The report includes time periods where PPU utilization is below this value. The default value is 50.
Number of equal-duration chunks: The number of chunks to divide the total PPU active time into. The default value is 100.
Time Range Mode: Sets the mode for the analysis time range:
PPU Active Time Range: The default mode. The time range spans from the start of the first PPU activity to the end of the last PPU activity.Filtered Time Range: The time range that you specify. If you do not specify a time range, the overall time range of the report is used.
Table context menu features
You can highlight or zoom to the selected range in the Timeline View.
Pie Chart Statistics: Aggregates the duration of low-utilization periods for each process or device. Use the pie chart to identify which process or device has the lowest utilization.
2. Statistics system
The Asight Systems statistics system calculates statistics from report data to provide a comprehensive overview of program performance.
2.1 Use the statistics system
Similar to the Function View, switch to the statistics system page by clicking its tab at the bottom, as shown below:

Rule list: Select a statistics rule.
Active parameter configuration: Hover to view detailed parameter information.
Search box: Supports both search and filter modes.
Rule parameter configuration dialog box: Configure the current statistics rule.
Pie chart of the statistical results and related optimization suggestions: Switch between them using the tabs at the top.
Statistics result table: Displays the analysis results for the current rule. Export the analysis results from the context menu.
2.1.1 Set the time range
Use the filter feature in the Timeline View to set a time range. The statistics system analyzes events only within this range. To set the time range, drag to select an area in the Timeline View. Then, open the context menu for the selection and click "Filter and Zoom in".
2.1.2 Jump to the Timeline View
For some rules, such as Trace and Detail rules, you can jump to the Timeline View from the table using the context menu.
2.1.3 Statistical pie chart
In addition to the table, the statistics system can also display statistical results as a pie chart:

In the figure above:
This pie chart groups the data from the table on the right by a selected key (in this case,
Name). It then calculates the totalDurationfor each group and shows its percentage of the overallDuration. Use the combo box to change the key.Set the number of slices to display.
The pie chart. Each slice shows the percentage of a
Name's totalDurationrelative to the overallDuration.The legend. It lists the
Namevalues, sorted byDurationin descending order.
Clicking a slice in the pie chart filters the table to show only the corresponding rows, as shown below:

In the figure above, you clicked the slice for the name add(int*,int*,int*). As a result, the table on the right is filtered to show only items with that name. To reset the table, click the slice again or click a blank area of the pie chart.
2.1.4 Sum columns by selecting rows
In the statistics system, some rules let you select rows to calculate column sums. The results appear in the table header, as shown below:

In the figure above, the first three rows are selected. The totals for the Time and Total Time columns for these rows are displayed in the table header.
2.2 Use the statistics system via CLI
Run the asys stats command to analyze a specified report. This command provides efficient statistical and trace export capabilities, letting you output analysis results to the console, a file, or a pipeline for viewing and further processing. Some statistical and analysis results can also be viewed in the Asight Systems GUI.
The syntax for the stats subcommand is: asys stats [option] <file.asysrep>
2.2.1 Specify the report type
asys stats supports multiple report types. To view detailed descriptions of the report types, run asys stats --help-reports ALL.
Use the --report option to specify the report type. You can use this option multiple times or specify multiple report types in a comma-separated list. If you do not specify a report type, asys stats uses the default report type.
For example, to generate a report using the hggc_ppu_kern_sum and device_memory_usage_summary report types:
asys stats --report hggc_ppu_kern_sum,device_memory_usage_summary report.asysrep2.2.2 Specify the report format
The asys stats command supports the --format option to specify the output format of a statistics report. You can run asys stats --help-formats ALL to view the supported output formats and help information.
column: The default format for terminal output. This format presents the report as a human-readable list and supports the following sub-options:
Unit settings: Sets the unit and precision for the output data.
csv: The default format for file output. This format can be easily exported for further processing and supports the following sub-options:
Unit settings: Sets the unit and precision for the output data.
The Unit settings allow you to specify the units for specific data types. Supported types and unit options are listed below:
ratio: Ratio or percentage data. Supported units:%or.1%: Precision to one decimal place..2%: Precision to two decimal places..3%: Precision to three decimal places.
For example, to specify the column format and set the precision for ratio data to three decimal places:
asys stats -r hgtx_ppu_proj_sum --format column:ratio=.3% report.asysrep2.2.3 Specify the report output target
Use the --output option to specify the report output target. You can print to the console, save to a file, or pipe to a command. By default, asys prints the report to the console.
Use --output % to output the report to the console. For example:
asys stats --output % --report hgtx_sum report.asysrepUse --output . to output the report to the same directory as the input .asysrep file. asys automatically generates the output filename based on the input filename, the specified report type, and the output format. The filename pattern is: <file_name>_<report_name>.<format>. For example, generating a hggc_api_sum report for report.asysrep in the same directory creates an output file named report_hggc_api_sum.csv:
asys stats --output . --report hggc_api_sum report.asysrepUse --output @post_command to pipe the output to another command for further processing. This pipes the statistics report content to the specified command. For example, to find results containing the keyword 1142417 using grep:
asys stats --output "@grep 1142417" --report device_memory_usage_summary report.asysrep2.2.4 Specify the time range
Use the --filter-time option to specify the time range for analysis. The format is start_time/end_time in nanoseconds. The time represents a time offset from the start of the trace. You can omit either the start time or the end time. For example, to analyze trace data from the 10-second mark to the 20-second mark:
asys stats --filter-time 10000000000/20000000000 --report device_memory_usage_summary report.asysrepAlternatively, use the --filter-hgtx option to specify the time range based on an HGTX annotation. The --filter-hgtx option overrides the --filter-time option.
The --filter-hgtx option allows you to specify the name, domain, and index of the HGTX range to match. The format is range_name@domain/index. If the HGTX range does not have a domain, you can omit @domain. Otherwise, @domain is required.
By default, asys uses the first matching HGTX range as the analysis time range. In this case, you can omit /index. To specify a different match, use /index. The index is 0-based.
For example, to use the time range of the first matching HGTX range named self_attention that has no domain:
asys stats --filter-hgtx self_attention --report device_memory_usage_summary report.asysrepFor example, to use the time range of the 9th matching HGTX range (index 8) named pcclGroupEnd in the NCCL domain:
asys stats --filter-hgtx "pcclGroupEnd@NCCL/8" --report device_memory_usage_summary report.asysrepTips:
The timestamps in the asys stats output may vary depending on the
--reportoption. To normalize the timestamps, you can specify the--ts-normalize trueoption to convert the timestamps to UTC time.asys statssupports the--ts-shiftoption to manually adjust the timestamp offset. You can use this option with--ts-normalize.
2.3 Statistics system rules
2.3.1 Device memory usage grouping and summary
This feature analyzes PPU device memory usage records for various data types from an asysrep report. It aggregates memory usage into groups, such as operator library or framework, and outputs a summary and detailed information for each group.
Required asys collection option: --hggc-memory-usage device
Statistics rules
At the per process, per PPU level, summarizes the usage records for PPU device memory that has been allocated but not released.
For each unreleased memory allocation, the tool matches it to a group based on the call stack information at the time of allocation. This includes the order of frames and keywords matched within each frame.
A memory allocation record can match multiple groups. The output lists all assigned groups, separated by a /.
The tool then aggregates the memory usage for each combination of groups, and the results are sorted in descending order of total memory usage.
The columns in the device_memory_usage_detail table are as follows:
Row# : Row number of the device memory usage
PID : Process identifier
Device ID : PPU device identifier
Group List : Assigned groups, separated by '/'
Time [ns] : Memory usage timestamp
TID : Thread identifier
Context ID : Context identifier
Memory : Memory identifier
Size [bytes] : Memory usage size
Access Flag : Memory access flag
Event ID : Memory usage event identifierThe columns in the device_memory_usage_summary table are as follows:
Row# : Row number of the device memory usage
PID : Process identifier
Device ID : PPU device identifier
Group List : Assigned groups, separated by '/'
Memory Usage [bytes] : Total device memory used.Command-line usage
You can specify the data type using the -r <rule>:usage-mode=<mode> option.
The device_memory_usage_detail rule supports two data types:
'all': Exports memory traces of all allocations and deallocations.
'unreleased': Exports memory traces of unreleased (leaked) allocations. (Default)
The device_memory_usage_summary rule supports four data types:
'alloc-count': Total allocation count.
'alloc-size': Total allocated size.
'unreleased-count': Count of unreleased (leaked) allocations.
'unreleased-size': Size of unreleased (leaked) allocations. (Default)
Use the --callstack-group-config option to add grouping rules. You can also use the :match-first-group option to assign an allocation to only the first group it matches. By default, an allocation is assigned to all matching groups.
Use the --report option to specify grouping statistics reports. For example:
asys stats -r device_memory_usage_summary:usage-mode=unreleased-size:match-first-group \
--callstack-group-config "acompute=(libacblas|libacdnn)" \
--callstack-group-config "launch_kernel=libtorch/LaunchKernel" \
--callstack-group-config "loss=loss.py" \
report.asysrep-r device_memory_usage_summary: Specifies the device memory usage summary report.:usage-mode=unreleased-size: Summarizes the size of unreleased (leaked) allocations.:match-first-group: Specifies that an allocation should be assigned only to the first group it matches.--callstack-group-config "acompute=(libacblas|libacdnn)":Creates a group named
acompute.The matching regular expression is
(libacblas|libacdnn). This matches memory allocations where the call stack contains the keywordlibacblasorlibacdnn.
--callstack-group-config "launch_kernel=libtorch/LaunchKernel":Creates a group named
launch_kernel.The matching regular expression is
libtorch/LaunchKernel. This matches memory allocations where a parent function's frame in the call stack contains the keywordlibtorch, and a child function's frame contains the keywordLaunchKernel.The matching parent and child frames do not need to be adjacent in the call stack.
--callstack-group-config "loss=loss.py":Creates a group named
loss.The matching regular expression is
loss.py. This matches memory allocations where the call stack contains the keywordloss.py.This matching supports Python call stacks.
The following sample shows the group statistics output in CSV format. You can use the --output option to save the output to a file, such as a CSV file.
PID,Device ID,Group List,Memory Usage,
1873,0,launch_kernel,213174,
1873,0,others,48674898730,
1873,0,acompute,1610624066,
1873,0,loss,28591The report provides a summary of unreleased memory in
bytesfor theacompute,launch_kernel, andlossgroups.Memory allocations that do not belong to any user-specified group are aggregated into the default
othersgroup.
The device memory grouping feature provides the following two report types. You can specify one or more reports using the --report option:
device_memory_usage_summary: Outputs a summary of unreleased memory per process, per device, and per group.device_memory_usage_detail: Outputs each record of an unreleased memory allocation, along with its assigned group(s).
For details on the device memory grouping feature, including its output format, use the --help-reports option. For example, run asys stats --help-report device_memory_usage_summary. The following is a sample of the output:
root@eb4c64fd3401:~# asys stats --help-report device_memory_usage_summary
device_memory_usage_summary -- Device memory usage summary
Options:
match-first-group
Optional argument. When used with --callstack-group-config:
If specified, matches only the first call stack group.
The default is to match all call stack groups.
usage-mode=<mode>
Possible values are 'alloc-size', 'unreleased-size', 'alloc-count' or 'unreleased-count'.
Specify the memory usage mode.
If 'alloc-size', shows the total size of allocated device memory.
If 'unreleased-size', shows allocated but not freed device memory usage.
If 'alloc-count', shows the total count of allocated device memory.
If 'unreleased-count', shows the count of allocated but not freed device memory.
Default is 'unreleased-size'.
Use --filter-time / --filter-hgtx to specify report time range.
Use --callstack-group-config to create report group configuration.
Try 'asys stats --help' for more information.
Output:
Row# : Row number of the device memory usage
PID : Process identifier
Device ID : PPU device identifier
Group List : Assigned groups, separated by '/'
Memory Usage [bytes] : Total device memory used.
Groups and summarizes device memory usage for the specified mode.
If the mode is 'alloc-size', displays a summary of allocated device memory usage.
If the mode is 'alloc-count', displays a summary of the allocated device memory count.
If the mode is 'unreleased-size', displays a summary of allocated but not freed device memory usage.
If the mode is 'unreleased-count', displays a summary of the allocated but not freed device memory count.If the group matching strategy is set to match multiple groups, the report displays all groups to which a record belongs, separated by a /. For example:
acompute/launch_kernelThe memory allocation belongs to both the
acomputeandlaunch_kernelgroups.If the matching strategy is set to match the first group only, the allocation is assigned only to the first group that meets the criteria.
The order of the groups depends on the order in which the
--callstack-group-configoptions are specified on the command line.
Use the --callstack-group-config option to create groups and specify matching rules with a regular expression. The format is group_name=frame_filters. The frame_filters argument can specify regular expressions for multiple frames in the format frame_regex1/frame_regex2/.... The frame regular expressions are separated by a /, and the frames are ordered from parent function to child function. The group matching rules are as follows:
A frame is considered a match if the regular expression
partially matchesthelibrary nameorfunction signaturein the call stack.A group is considered a match if the hierarchical order of matched frames in the call stack corresponds to the order specified in
frame_filters.
The following is an example of the --callstack-group-config option. You can use --callstack-group-config multiple times to create multiple groups, and for each group, specify rules to match multiple frames:
--callstack-group-config "torch=libtorch" --callstack-group-config "acompute=(libacblas|libacdnn)" --callstack-group-config "buffer_init=_to_copy/empty_strided"Tips:
If you do not add any grouping rules using the
--callstack-group-configoption, the tool uses a set of default, built-in rules.If you use multiple
--callstack-group-configoptions to create groups with the same name, a memory allocation that matches any of these rules is assigned to that group.
GUI guide
Settings
Usage Mode: Specifies the type of data to analyze. The Device Memory Usage Detail rule supports two data types:
Unreleased Alloc Trace: Exports memory traces for unreleased (leaked) allocations. (Default)
All Alloc and Free Trace: Exports memory traces for all allocations and deallocations.
The Device Memory Usage Summary rule supports four data types:
Unreleased Alloc Size: Summarizes the size of unreleased (leaked) allocations. (Default)
Total Alloc Size: Summarizes the total size of all allocations.
Unreleased Alloc Count: Summarizes the count of unreleased (leaked) allocations.
Total Alloc Count: Summarizes the total count of all allocations.
Group Config: Creates groups and specifies matching rules with regular expressions. The format is group_name=frame_filters. The frame_filters argument can specify regular expressions for one or more frames in the format frame_regex1/frame_regex2/.... Frame regular expressions are separated by a /, and frames are ordered from parent function to child function.
Only match the first group in order: When selected, an allocation is assigned only to the first group it matches, based on the top-to-bottom order in the list. By default, this option is cleared, meaning an allocation is assigned to all matching groups.
Table context menu
For the Device Memory Usage Detail rule, the context menu allows you to highlight or zoom to the selected memory trace in the Timeline View.
Pie chart statistics: Summarizes unreleased memory usage for each group, process, or device. Use the pie chart to identify potential memory leaks in each category.
2.3.2 HGGC API summary
This report lists HGGC APIs from an asysrep report, ranked by their total execution time in descending order.
Statistics rule
This rule aggregates statistics by HGGC API name. It sums the execution time for APIs with the same name and sorts the results in descending order by total execution time.
The hggc_api_sum table includes the following columns:
The "Time [%]" column shows a function's execution time as a percentage of the total execution time for all functions in this report, not the total application execution time.
Row# : Row number of the HGGC API summary
Time [%] : Percentage of 'Total Time'
Total Time [ns] : Total time used by all executions of this function
Num Calls : Number of calls to this function
Avg [ns] : Average execution time of this function
Med [ns] : Median execution time of this function
Min [ns] : Smallest execution time of this function
Max [ns] : Largest execution time of this function
StdDev [ns] : Standard deviation of the time of this function
Name : Name of the functionCLI usage
Requires the asys trace option: --trace hggc
asys stats -r hggc_api_sum report.asysrepFor details, run asys stats --help-report hggc_api_sum.
Example output:
Row#,Time (%),Total Time (ns),Num Calls,Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),Name,
1,84.9,393100090,342,1149415,98746,3981,11001565,2011747,"hgMemcpyHtoDAsync_v2",
2,4.3,19851112,1297,15305,5351,2893,3860175,147778,"hgLaunchKernel",
3,2.9,13492044,1486,9079,2861,613,3707197,108998,"hgEventQuery",
4,2.9,13487638,1495,9021,6027,3191,222379,14733,"hggcLaunchKernel",
...GUI
Settings
This rule has no configurable settings.
Pie chart: Shows the execution time for each HGGC API.
2.3.3 HGGC API trace
Exports HGGC API trace data from an asysrep report, sorted chronologically.
Required asys collection option: --trace hggc
Statistics rule
Exports one row of data for each HGGC API call, sorted chronologically.
The hggc_api_trace table includes the following columns:
Row# : Row number of the HGGC API trace
Start [ns] : Timestamp when API call was made
Duration [ns] : Duration of the API call
Name : API function name
CorrID : Correlation used to map to other HGGC traces
Pid : ID of the process that made the call
Tid : ID of the thread that made the call
Thread Name : Name of the thread that called the API functionCommand-line usage
asys stats -r hggc_api_trace report.asysrepFor detailed help information, run asys stats --help-report hggc_api_trace.
The following example shows the report output:
Row#,Start (ns),Duration (ns),Name,CorrID,Pid,Tid,Thread Name,
1,41550,12737,"cudaProfilerStart",0,104699,104699,"python",
2,938476,28340,"cudaLaunchKernel",130170,104699,104699,"python",
3,999414,9382,"cudaLaunchKernel",130171,104699,104699,"python",
...GUI guide
Rule settings (Settings)
This rule has no configurable setting options.
Table context menu features
You can highlight or zoom in on a selected HGGC API call in the Timeline View.
Pie chart statistics: Summarizes the duration of HGGC API calls. You can also view these statistics aggregated by process.
2.3.4 HGGC kernel execution trace
This report provides an execution trace of HGGC kernels, from the API launch call to the start of kernel execution. The data is sorted by the start time of the API launch call.
Statistical rules
The exported results are organized as follows: one row of data is exported for each kernel execution, and the output is sorted in ascending order by the start time of the kernel's launch API.
When a single HGGC API call launches multiple kernels (e.g., in an HGGC Graph), each kernel execution is listed in a separate row.
The wait time columns (Queue Start / Queue Dur) are calculated as follows:
Wait time is incurred if a kernel starts execution after the corresponding HGGC API call completes.
It is calculated as: (kernel execution start time) - (HGGC API call end time).
If the kernel starts executing before the HGGC API finishes, the Queue Start / Queue Dur column is marked with an invalid value,
-.
The columns of the hggc_kern_exec_trace table are described as follows:
Row#: Row number of the kernel trace.
API Start [ns]: Start timestamp of the HGGC API launch call.
API Dur [ns]: Duration of the HGGC API launch call.
Queue Start [ns]: Start timestamp of the queue wait time, if applicable.
Queue Dur [ns]: Duration of the queue wait time, if applicable.
Kernel Start [ns]: Start timestamp of the HGGC kernel.
Kernel Dur [ns]: Duration of the HGGC kernel.
Total Dur [ns]: Total duration from the start of the API call to the end of the kernel execution.
PID: ID of the process that made the kernel launch call.
TID: ID of the thread that made the kernel launch call.
DevId: ID of the HGGC device that executed the kernel.
API Function: Name of the HGGC API call used to launch the kernel.
GridXYZ: Grid dimensions for the kernel launch.
BlockXYZ: Block dimensions for the kernel launch.
Kernel Name: Name of the HGGC kernel.Command-line usage
Required asys trace option: --trace hggc
asys stats -r hggc_kern_exec_trace report.asysrepYou can run asys stats --help-report hggc_kern_exec_trace to view detailed help information. The supported options are as follows:
base: Displays the kernel's base name (the function name without parameters).mangled: Displays the kernel's mangled name.
By default, the demangled name of the HGGC kernel is displayed.
Example output:
Row#,API Start (ns),API Dur (ns),Queue Start (ns),Queue Dur (ns),Kernel Start (ns),Kernel Dur (ns),Total Dur (ns),PID,TID,DevId,API Function,GridXYZ,BlockXYZ,Kernel Name,
1,504935256,20348911,525284167,21237024,526172280,357034784,378271808,631660,631660,0,"hggcLaunchKernel","2 1 1","512 1 1","pcclKernel_AllReduce_RING_LL_Sum_int8_t(pcclWorkElem)",
2,845563829,20332834,865896663,20934656,866498485,17898735,38833391,631660,631660,1,"hggcLaunchKernel","2 1 1","512 1 1","pcclKernel_AllReduce_RING_LL_Sum_int8_t(pcclWorkElem)",
3,884469702,40488,884510190,627234,885096936,16944871,17572105,631660,631660,0,"hggcLaunchKernel","2 1 1","512 1 1","pcclKernel_AllReduce_RING_LL_Sum_int8_t(pcclWorkElem)",
...GUI guide
Settings
Kernel Name Mode: Sets the display format for the Kernel Name column. Options include:
Base: Displays the base name of the kernel (the function name without parameters).
Mangled: Displays the mangled name of the kernel.
Demangled: Displays the demangled name of the kernel (default).
Table context menu
Highlight or zoom to the corresponding HGGC API call in the Timeline View.
Highlight or zoom to the corresponding Device Activity in the Timeline View.
Pie Chart Statistics: This chart aggregates the total execution duration of all kernels, categorized by kernel, process, and device.
2.3.5 HGGC kernel grid and block summary
Collects statistics on HGGC kernels, grid sizes, and block sizes from an asysrep report and outputs the statistics for each kernel name, each grid size, and each block size.
Required asys collection option: --trace hgtx,hggc
Aggregation rules
Aggregation method:
Aggregates kernel execution information for kernels with the
same kernel name,same grid size, andsame block size: kernel execution time, instances, etc.If you enable the
hgtx-nameoption, thekernel namecontains the concatenated HGTX range name.
The statistics are organized as follows: one row of data is exported for each kernel name, grid size, and block size, and the results are sorted in descending order by the Total Time column.
The hggc_ppu_kern_gb_sum table has the following columns:
The 'Time' column represents the kernel's percentage of the sum of all 'Total Time' values for all kernels listed in the report, not a percentage of the application's total execution time.
Row# : Row number of the kernel summary
Time [%] : Percentage of 'Total Time'
Total Time [ns] : Total time used by all executions of this kernel
Instances : Number of calls to this kernel
Avg [ns] : Average execution time of this kernel
Med [ns] : Median execution time of this kernel
Min [ns] : Smallest execution time of this kernel
Max [ns] : Largest execution time of this kernel
StdDev [ns] : Standard deviation of the time of this kernel
GridXYZ : Grid dimensions for kernel launch call
BlockXYZ : Block dimensions for kernel launch call
Name : Name of the kernelCLI usage
asys stats -r hggc_ppu_kern_gb_sum report.asysrepYou can run asys stats --help-report hggc_ppu_kern_gb_sum to view detailed help information. The supported options are as follows:
hgtx-name: The name of the HGTX range closest to the kernel launch is prepended to the kernel name by using a
/.base: Uses the kernel's short name (function name only, without parameters) for aggregation and output.
mangled: Uses the kernel's mangled name for aggregation and output.
device: Specifies the list of PPU device IDs for which statistics are collected, separated by a
/. If this parameter is not specified, statistics are collected for all PPU devices by default.
Example output:
Row#,Time (%),Total Time (ns),Instances,Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),GridXYZ,BlockXYZ,Name,
1,6.7,16337781,65,251350,260801,115520,277681,39767,"960 1 64","256 1 1","[prof_range]: iter 9/_ZN5acdnn4cuda9transposeILNS0_8LoopModeE0ELi32ELi8ELb0ELb0EN7",
2,3.1,7415267,20,370763,370601,366482,374162,1936,"2048 1 1","512 1 1","[prof_range]: iter 8/_ZL35batch_norm_bwd_single_vector_accessILb0EN5acdnn16identity",
3,3.0,7348069,20,367403,366401,361281,375921,3885,"122880 1 1","128 1 1","_ZN2at6native29vectorized_elementwise_kernelILi4EZZZNS0_12",GUI guide
Settings
Kernel Name Mode: Sets the display format for kernel names. Available modes include:
Base: Displays the kernel's short name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
PPU Devices: Filters the results by the selected
PPU devices. The default value is "All", which includes data from allPPU devices. This field is required.Add HGTX name as a prefix: Prepends the name of the HGTX closest to the kernel launch, separated by
/. This option is not selected by default.
Pie chart: Summarizes the kernel execution time of all kernels.
2.3.6 HGGC kernel grid and block trace
Exports trace data for HGGC kernel execution from an asysrep report, including grid size and block size information. The output is sorted in ascending order by execution start time.
Report format
This report lists each kernel execution as a single row, sorted in ascending order by start time.
The hggc_ppu_kern_gb_trace table has the following columns:
Row# : Row number of the kernel trace
Start [ns] : Start timestamp
Duration [ns] : Duration of the event
PID : Process ID
Device ID : PPU device ID
Context ID : Context ID
Stream ID : Stream ID
GridXYZ : grid dimensions for the kernel launch call
BlockXYZ : block dimensions for the kernel launch call
Name : Name of the kernelCLI
Required asys collection option: --trace hgtx,hggc
asys stats -r hggc_ppu_kern_gb_trace report.asysrepFor detailed help information, run asys stats --help-report hggc_ppu_kern_gb_trace. Supported options include:
hgtx-name: Prefixes the kernel name with the name of the HGTX range closest to the kernel launch, separated by a
/.base: Uses the kernel's short name (function name only, without parameters) for statistics and output.
mangled: Uses the kernel's mangled name for statistics and output.
The following is an example of the report output:
Row#,Start (ns),Duration (ns),PID,Device ID,Context ID,Stream ID,GridXYZ,BlockXYZ,Name,
1,970508,6240,104699,0,1,1,"3 1 1","128 1 1","[prof_range]: iter 5/unrolled_elementwise_kernel",
2,1014188,44480,104699,0,1,1,"15360 1 1","128 1 1","[prof_range]: iter 5/unrolled_elementwise_kernel",
3,1158469,98480,104699,0,1,1,"960 1 64","256 1 1","[prof_range]: iter 5/transpose",
4,1257269,1880,104699,0,1,1,"1 1 32","256 1 1","[prof_range]: iter 5/transpose",Console
Settings
Kernel name mode: Sets the display mode for the kernel name:
Base: Displays the kernel's short name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
Add HGTX name as a prefix: Prefixes the kernel name with the name of the closest HGTX range to the kernel launch, separated by a
/. This option is disabled by default.
Table context menu
Use this menu to highlight or zoom to the selected Device Activity in the Timeline View.
Pie chart statistics: Shows the aggregated execution duration for all kernels, processes, and devices.
2.3.7 HGGC PPU kernel summary
This report summarizes the execution time of HGGC PPU kernels from an asysrep report and lists the results in descending order by total kernel execution time.
Required asys trace option: --trace hggc
Statistics rule
Statistics are aggregated by HGGC kernel name. The format of the HGGC kernel name depends on whether the base or mangled option is specified. By default, the report uses the demangled kernel name, which includes the parameter list.
The columns in the hggc_ppu_kern_sum table are described as follows:
The "Time" column is a percentage calculated from the sum of the "Total Time" column. This percentage represents the kernel's execution time relative to the total execution time of all listed kernels, not the total application execution time.
Row# : Row number of the kernel summary
Time [%] : Percentage of 'Total Time'
Total Time [ns] : Total time used by all executions of this kernel
Instances : Number of calls to this kernel
Avg [ns] : Average execution time of this kernel
Med [ns] : Median execution time of this kernel
Min [ns] : Minimum execution time of this kernel
Max [ns] : Maximum execution time of this kernel
StdDev [ns] : Standard deviation of the time of this kernel
Name : Name of the kernelCommand-line usage
asys stats -r hggc_ppu_kern_sum report.asysrepFor details, run asys stats --help-report hggc_ppu_kern_sum. Supported options include:
hgtx-name: Prefixes the kernel name with the name of the HGTX range closest to the kernel launch, separated by a /.
base: Aggregates and outputs statistics using the kernel's base name (function name only, without the parameter list).
mangled: Aggregates and outputs statistics using the kernel's mangled name.
device: Specifies the PPU device IDs for which to collect statistics. To specify multiple IDs, separate them with a
/. If this option is omitted, statistics are collected for all PPU devices.
Example output:
Row#,Time (%),Total Time (ns),Instances,Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),Name,
1,81.6,826473830,28,29516922,17075623,16812011,357034784,64193935,"_Z39pcclKernel_AllReduce_RING_LL_Sum_int8_t12ncclWorkElem",
2,13.9,141273640,4,35318410,34326818,31248932,41371071,4288359,"_Z9deltaKernIaLi256EEvPvS0_mPd",
3,2.3,23263744,4,5815936,5866699,4743763,6786583,1087875,"_Z14InitDataKernelIaEvPT_mii",
4,2.2,22033972,4,5508493,5461251,4528464,6583005,1031905,"_Z20InitDataReduceKernelIaXadL_Z9ncclOpSumIaET_S1_S1_EEEvPS1_mmii",GUI guide
Settings
Kernel name mode: Controls how kernel names are displayed. Available modes are:
Base: Displays the kernel's base name (function name only, without the parameter list).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name. This is the default.
PPU Devices: Filters results by the selected PPU devices. The default is "All", which includes data from all PPU devices. At least one device must be selected.
Pie chart statistics: Displays a pie chart summarizing the execution time of all kernels.
2.3.8 HGGC PPU trace
This report exports trace data from an asysrep report for HGGC kernel, memcpy, and memset operations executed on the PPU. The output is sorted in ascending order by execution start time.
Statistics Rules
Each kernel, memcpy, or memset execution appears as a single row, sorted in ascending order by execution start time.
Since the columns accommodate all three event types (kernels, memcpy, and memset), inapplicable cells for a given event are marked with the invalid value -.
The hggc_ppu_trace table includes the following columns:
Row# : Row number of the PPU trace
Start [ns] : Start timestamp of the event
Duration [ns] : Duration of the event
CorrId : Correlation ID
GrdX : Grid X values
GrdY : Grid Y values
GrdZ : Grid Z values
BlkX : Block X values
BlkY : Block Y values
BlkZ : Block Z values
Reg/Trd : Registers per thread
StcSMem [bytes] : Size of Static Shared Memory
DymSMem [bytes] : Size of Dynamic Shared Memory
Bytes [bytes] : Size of the memory operation
Throughput [B/s] : Memory throughput
SrcMemKd : Source memory kind for memcpy or memset
DstMemKd : Destination memory kind for memcpy
Device : PPU device name and ID
Ctx : Context ID
Strm : Stream ID
Name : Trace event nameCommand-Line Usage
Required asys collection option: --trace hggc
asys stats -r hggc_ppu_trace report.asysrepFor detailed help information, run asys stats --help-report hggc_ppu_trace. Supported options include:
hgtx-name: Exports the kernel name prefixed with the name of the nearest preceding HGTX range, separated by a /.
base: Exports the kernel's base name (function name only, without parameters).
mangled: Exports the kernel's mangled name.
By default, the report exports the demangled name of the HGGC kernel.
The following example shows the report output, where inapplicable cells are marked with the invalid value -:
Row#,Start (ns),Duration (ns),CorrId,GrdX,GrdY,GrdZ,BlkX,BlkY,BlkZ,Reg/Trd,StcSMem (bytes),DymSMem (bytes),Bytes (bytes),Throughput (B/s),SrcMemKd,DstMemKd,Device,Ctx,Strm,Name,
1,193282492,3009,5,"-","-","-","-","-","-","-","-","-",256,85078016,"Device","-","",1,1,"Memset",
2,193329286,1332,6,"-","-","-","-","-","-","-","-","-",256,192192000,"Pageable","Device","",1,1,"Memcpy HtoD (device)",
3,193380562,3415,7,"-","-","-","-","-","-","-","-","-",256,74963200,"Pageable","Device","",1,1,"Memcpy HtoD (device)",
4,231829389,4562345,8,64,1,1,1,1,1,32,0,0,"-","-","-","-","",1,1,"add(int*, int*, int*)",GUI Guide
Settings
Kernel Name Mode: The display mode for the kernel name. Options include:
Base: Displays the kernel's base name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
Table context menu features
You can highlight or zoom to a selected kernel or memory operation in the Timeline View.
Pie chart statistics: Summarizes the execution time for all PPU events and devices.
2.3.9 HGTX-correlated kernel summary
This report analyzes trace data for HGTX ranges and their associated HGGC kernels from an asysrep report. It outputs statistical information for each combination of HGTX range name and kernel name.
Required asys trace options: --trace hgtx,hggc
Statistical logic
Correlation logic: An HGGC kernel is considered associated with an HGTX range if the kernel is launched by an HGGC API call from the same thread within that HGTX range.
Aggregation logic:
On a per-process and per-thread basis, the report aggregates kernel execution information for each combination of
HGTX range nameandkernel name. The aggregated information includes kernel execution time, the number of HGTX instances, and the number of kernel instances.
The report is organized as follows: each unique combination of thread, HGTX range name, and HGGC kernel name is exported as a single row. If the standalone option is enabled, kernels that are not associated with an HGTX range are included, and their HGTX-related information is marked with a -. The results are sorted as follows:
Primarily by HGTX range name, process ID, and thread ID in ascending order.
Secondarily, for kernels within the same thread and HGTX range, the results are sorted by the Total time column in descending order.
The columns in the hgtx_kern_sum table are described as follows:
Row# : Row number of the HGTX range kernel summary
HGTX Range : Name of the range
Style : Range style; Start/End or Push/Pop
PID : Process ID for this set of ranges and kernels
TID : Thread ID for this set of ranges and kernels
HGTX Inst : Number of HGTX range instances
Kern Inst : Number of HGGC kernel instances
Total Time [ns] : Total time used by all kernel instances of this range
Avg [ns] : Average execution time of this kernel
Med [ns] : Median execution time of this kernel
Min [ns] : Minimum execution time of this kernel
Max [ns] : Maximum execution time of this kernel
StdDev [ns] : Standard deviation of the time of this kernel
Kernel Name : Name of the kernelCommand-line usage
asys stats -r hgtx_kern_sum report.asysrepFor detailed help information, run asys stats --help-report hgtx_kern_sum. Supported options include:
base: Exports the kernel's base name (function name only, without parameters).
mangled: Exports the kernel's mangled name.
standalone: Includes HGGC kernels that are not associated with any HGTX range in the output.
device: Specifies a list of PPU device IDs for which to collect statistics. Separate multiple PPU device IDs with a
/. If not specified, statistics are collected for all PPU devices by default.no-graph-mapping: Excludes HGTX range information that is mapped through HGGC graph nodes from the output.
range=<regex_filter>: Specifies a regular expression to filter the HGTX ranges to be included in the statistics. If not specified, all HGTX ranges are analyzed by default.
The following example shows the report results:
Row#,HGTX Range,Style,PID,TID,HGTX Inst,Kern Inst,Total Time (ns),Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),Kernel Name,
1,"DoProcess","PushPop",3588556,3588556,2,2,8036961,4018480,4018480,3474616,4562345,543864,"add(int*, int*, int*)",
2,"Loop1","PushPop",3588556,3588556,1,1,4562345,4562345,4562345,4562345,4562345,0,"add(int*, int*, int*)",
3,"Loop2","PushPop",3588556,3588556,1,1,3474616,3474616,3474616,3474616,3474616,0,"add(int*, int*, int*)",
4,"profile","PushPop",3588556,3588556,1,2,8036961,4018480,4018480,3474616,4562345,543864,"add(int*, int*, int*)",GUI guide
Settings
Kernel Name Mode: Sets the display format for kernel names. The available modes are:
Base: Exports the kernel's base name (function name only, without parameters).
Mangled: Exports the kernel's mangled name.
Demangled: Exports the kernel's demangled name (default).
Include Standalone Kernel: Includes kernels that do not match any HGTX range. For these kernels, the HGTX-related columns show invalid values. This option is disabled by default.
HGTX graph node mapping: Projects HGTX ranges from the HGGC graph capture phase to the PPU side by associating them through HGGC graph nodes created within the HGTX range. The default value is "Yes".
PPU Devices: Filters the results by PPU device. The default, "All", includes data from all PPU devices. This field is required.
Pie chart statistics: Aggregates the kernel execution duration by HGTX range, process, or kernel name.
2.3.10 HGTX-correlated kernel trace
This feature correlates HGTX ranges and HGGC kernels and exports the results on a per-HGTX range, per-HGGC kernel basis.
Statistics rule
An HGGC kernel is associated with an HGTX range if it is launched by an HGGC API call from the same thread during that HGTX range.
The exported results are organized as follows: one row of data is exported for each HGTX range and each HGGC kernel. If the standalone option is enabled, the HGTX range information for an HGGC kernel that is not associated with an HGTX range is marked with the invalid symbol -.
Sort Order:
HGGC kernels are sorted in ascending order by their PPU execution start time.
For a given HGGC kernel, its associated HGTX range entries are sorted in ascending order by the range's start time.
The columns in the hgtx_kern_trace table are described as follows:
Row# : row number of the HGTX range kernel trace
Range Name : name of the HGTX range
Style : range style; Start/End or Push/Pop
PID : process identifier
TID : thread identifier
Device ID : PPU device identifier
Context ID : context identifier
Stream ID : stream identifier
HGTX Range ID : HGTX range identifier
Kernel Exec ID : kernel execution identifier
Kernel Start (ns) : start timestamp of HGGC kernel
Kernel Duration (ns) : duration of HGGC kernel
API Start (ns) : start timestamp of API call
API Duration (ns) : duration of API call
GridXYZ : grid dimensions for kernel launch call
BlockXYZ : block dimensions for kernel launch call
Correlation ID : correlation identifier
Graph ID : HGGC graph identifier
Graph Node ID : HGGC graph node identifier
Kernel Name : name of the kernel
Mangled Name : mangled name of the kernelCommand-line usage
Required asys collection option: --trace hgtx,hggc
asys stats -r hgtx_kern_trace report.asysrepFor more details, run asys stats --help-report hgtx_kern_trace. The supported options are listed below:
base: Exports the kernel's base name (function name only, without parameters).
mangled: Exports the kernel's mangled name.
standalone: Includes HGGC kernels that are not associated with any HGTX range in the output.
no-graph-mapping: Excludes HGTX range information that is mapped through HGGC graph nodes from the output.
range=<regex_filter>: Specifies a regular expression to filter the HGTX ranges for analysis. If this option is not specified, all HGTX ranges are included by default.
Example output:
Row#,Range Name,Style,PID,TID,Device ID,Context ID,Stream ID,HGTX Range ID,Kernel Exec ID,Kernel Start (ns),Kernel Duration (ns),API Start (ns),API Duration (ns),GridXYZ,BlockXYZ,Correlation ID,Graph ID,Graph Node ID,Kernel Name,Mangled Name,
1,"profile","PushPop",4010376,4010376,0,1,1,6,23,85579190,11136752,80913269,4025776,"64 1 1","1 1 1",8,"-","-","add(int*, int*, int*)","_Z3addPiS_S_",
2,"Loop1","PushPop",4010376,4010376,0,1,1,7,23,85579190,11136752,80913269,4025776,"64 1 1","1 1 1",8,"-","-","add(int*, int*, int*)","_Z3addPiS_S_",
3,"DoProcess","PushPop",4010376,4010376,0,1,1,8,23,85579190,11136752,80913269,4025776,"64 1 1","1 1 1",8,"-","-","add(int*, int*, int*)","_Z3addPiS_S_",
...GUI guide
Settings
Kernel name mode: Sets the display mode for kernel names. The following modes are available:
Base: Displays the kernel's base name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
HGTX graph node mapping: Controls whether to project HGTX ranges from the HGGC graph capture phase to the PPU side. The association is established through HGGC graph nodes created within the HGTX range. The default value is "Yes".
Include standalone kernel: Controls whether to include kernels that are not associated with any HGTX range. For these kernels, the HGTX-related columns show invalid values. This option is disabled by default.
Table context menu features
Highlight or zoom to the selected HGTX Range in the Timeline View.
Highlight or zoom to the selected Device Activity in the Timeline View.
Pie chart statistics: Aggregates the kernel execution duration by HGTX range, kernel name, process, and device.
2.3.11 HGTX to PPU projection summary
This report projects CPU-side HGTX ranges from an asysrep report onto the PPU timeline and calculates the active time of these ranges on the PPU.
Required asys trace options: --trace hgtx,hggc
Statistical Rules
An HGGC kernel is associated with an HGTX range if an HGGC API call launches it from the same thread during that range.
The projection of a CPU-side HGTX range onto the PPU timeline is the duration from the start of the earliest associated PPU activity to the end of the latest associated PPU activity. PPU activities include HGGC kernel, memcpy, and memset operations.
Aggregation Method:
Aggregates information for HGTX ranges that have the
same nameandsame style, such as CPU-side duration and PPU-side projected duration.The total projected active time (
Proj Active Time) for a given HGTX range name is calculated as the union of all its projected time intervals. If the projections of multiple instances of the same range name overlap, the overlapping time is counted only once.The PPU-side utilization (
In-Use) for a given HGTX range name is calculated as:Proj Active Time/PPU analysis time range. ThePPU analysis time rangeis determined by therange-modeoption.
The report sorts the results first by In-Use in descending order, and then by HGTX range name in ascending order.
The columns in the hgtx_ppu_proj_sum table are described as follows:
Row# : Row number of the HGTX PPU projection summary
Range : Name of the HGTX range
Style : Range style; Start/End or Push/Pop
In-Use [%] : Projected active time as a percentage of the analysis time range
Proj Active Time [ns] : Total projected time for this range name, excluding overlaps
Total Proj Time [ns] : Total projected time of all instances of this range name
Total Range Time [ns] : Total original HGTX range time of all instances of this range name
Range Instances : Number of instances of this range
Proj Avg [ns] : Average projected time for this range
Proj Med [ns] : Median projected time for this range
Proj Min [ns] : Minimum projected time for this range
Proj Max [ns] : Maximum projected time for this range
Proj StdDev [ns] : Standard deviation of projected times for this range
Total PPU Ops : Total number of PPU operations
Avg PPU Ops : Average number of PPU operations
Avg Range Lvl : Average range stack depth
Avg Num Child : Average number of children rangesCommand-Line Usage
asys stats -r hgtx_ppu_proj_sum report.asysrepTo view detailed help, run asys stats --help-report hgtx_ppu_proj_sum. The supported options are as follows:
device=<device_list>: Specifies the PPU device IDs to analyze. Separate multiple IDs with a/. By default, the report analyzes all PPU devices.range-mode=<mode>: Sets the selection mode for the PPU-side analysis time range. Supported modes areactiveandfull.active: (Default) The time range spans from the first PPU activity to the last.full: The time range is the user-specified analysis time range. If no time range is specified, the analysis uses the entire report's time range.
range=<regex_filter>: Specifies a regular expression to filter HGTX ranges for analysis. By default, the analysis includes all HGTX ranges.no-graph-mapping: Excludes HGTX range information that is mapped through HGGC graph nodes from the output.
GUI Guide
Settings
PPU Devices: Filters the results by the selected PPU devices. The default value is "All", which includes data from all PPU devices. This field is required.
Time Range Mode: Sets the mode for the statistical time range:
PPU Active Time Range: (Default) The time range spans from the first PPU activity to the last.Filtered Time Range: Corresponds to the user-specified analysis time range. If no time range is specified, the analysis uses the entire report's time range.
HGTX graph node mapping: Specifies whether to project HGTX ranges from the HGGC graph capture phase to the PPU side. HGGC graph nodes created within the HGTX range establish this association. The default value is "Yes".
Range Name Filter: Filters the results by HGTX range name using a Perl-compatible regular expression. By default, this filter includes all HGTX ranges. This setting includes a syntax check for the regular expression. If the syntax is invalid, the GUI displays an error message, and you cannot save the settings.
Pie Chart Statistics: This chart aggregates the projected active time on the PPU for all CPU-side HGTX ranges, providing a visual overview of the execution time percentage for each projected HGTX range.
2.3.12 HGTX to PPU projection trace
This report projects CPU-side HGTX ranges from an asysrep report onto the PPU timeline to show their actual active time on the PPU and exports HGTX stack information.
Required asys trace option: --trace hgtx,hggc
Statistics rules
An HGGC kernel is associated with an HGTX range if an HGGC API call from the same thread launches the kernel during that range.
The projection of a CPU-side HGTX range onto the PPU is the time from the start of the earliest associated PPU activity to the end of the latest associated PPU activity. PPU activities include HGGC kernel, memcpy, and memset operations.
The PPU active time, PPU Active Time, for an HGTX range is the union of all its associated PPU activity intervals. If multiple PPU activities overlap, the overlapping time is counted only once.
The report exports one row for each HGTX range, and the results are sorted in ascending order by Projected Start.
The hgtx_ppu_proj_trace table columns are:
Row# : Row number of the HGTX PPU projection trace
Name : Name of the HGTX range
Projected Start [ns] : Projected range start timestamp
Projected Duration [ns] : Projected range duration
PPU Active Time [ns] : Total PPU active time excluding overlapping for this range
Orig Start [ns] : Original HGTX range start timestamp
Orig Duration [ns] : Original HGTX range duration
Style : Range style; Start/End or Push/Pop
PID : Process identifier
TID : Thread identifier
NumPPUOps : Number of enclosed PPU operations
Lvl : Stack level, starts at 0
NumChild : Number of children ranges
RangeId : Arbitrary ID for range
ParentId : Range ID of the enclosing range
RangeStack : Range IDs that make up the push/pop stackCommand-line usage
asys stats -r hgtx_ppu_proj_trace report.asysrepFor details, run asys stats --help-report hgtx_ppu_proj_trace. Supported options include:
device=<device_list>: Specify the list of PPU device IDs to include. Separate multiple PPU device IDs with a/. By default, the report includes all PPU devices.range=<regex_filter>: Specify a regular expression filter for HGTX ranges to include. By default, the report includes all HGTX ranges.no-graph-mapping: Do not include HGTX range information mapped through an HGGC graph node.
Example output:
Row#,Name,Projected Start (ns),Projected Duration (ns),PPU Active Time (ns),Orig Start (ns),Orig Duration (ns),Style,PID,TID,NumPPUOps,Lvl,NumChild,RangeId,ParentId,RangeStack,
1,"profile",777876074,53206947,21448563,776113485,56055065,"PushPop",295684,295684,50,0,10,6,"-",":6",
2,"Loop1",777876074,14961664,10470590,776142784,28572367,"PushPop",295684,295684,5,1,1,7,6,":6:7",
3,"DoProcess",777876074,14961664,10470590,776146124,27485685,"PushPop",295684,295684,5,2,0,8,7,":6:7:8",
...GUI guide
Settings
PPU Devices: Filters the report by the selected PPU devices. Default: "All". This field is required.
HGTX graph node mapping: Specifies whether to project HGTX ranges from the HGGC graph capture phase to the PPU. The association is established via HGGC graph nodes created within the HGTX ranges. Default: "Yes".
Range Name Filter: Filters the HGTX range names in the results using a Perl-compatible regular expression. By default, the report displays all HGTX ranges. This setting validates the regular expression syntax. If you enter an invalid expression, an error message appears and you cannot save the settings.
Context menu features
Highlight or zoom to the selected HGTX Range in the Timeline View.
Highlight or zoom to the selected Device Activity in the Timeline View.
Pie chart statistics: Aggregates the projected active time on the PPU for all CPU-side HGTX ranges, grouped by range name or process. This chart visualizes the percentage of total projected PPU active time contributed by each HGTX range or process.
2.3.13 HGTX range
This report summarizes HGTX range times from an asysrep report and sorts the results in descending order by total range time.
Required asys trace option: --trace hgtx
Statistical rules
Statistics are aggregated by summing the execution times of HGTX ranges based on their domain and name. If an HGTX range contains a domain, its name is displayed in the domain:range format. The output is sorted in descending order by the total execution time of the ranges.
If you specify the scope using the process/thread options, the report includes a range in the statistics if its thread matches the thread filter or its parent process matches the process filter.
The hgtx_sum table contains the following columns:
Note that the "Time" column shows a range's time as a percentage of the total time for all ranges listed in the report (the sum of the "Total Time" column), not as a percentage of the total application execution time.
Row# : Row number.
Time (%) : Percentage of 'Total Time'
Total Time (ns) : Total time consumed by all instances of this range
Instances : Number of times this range was executed
Avg (ns) : Average execution time for this range
Med (ns) : Median execution time for this range
Min (ns) : Minimum execution time for this range
Max (ns) : Maximum execution time for this range
StdDev (ns) : Standard deviation of the execution times for this range
Style : Range style; Start/End or Push/Pop
Range : The name of the rangeCommand-line usage
asys stats -r hgtx_sum report.asysrepFor details, run asys stats --help-report hgtx_sum. Supported options include:
rows=<limit>: Limits the number of HGTX range rows in the output.process=<pid_list>: Specifies the list of process IDs (PIDs) to include in the statistics. Separate multiple PIDs with a/. If this option is not specified, all processes are included.thread=<tid_list>: Specifies the list of thread IDs (TIDs) to include in the statistics. Separate multiple TIDs with a/. If this option is not specified, all threads are included.
Example output:
Row#,Time (%),Total Time (ns),Instances,Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),Style,Range,
1,25.7,181837947,1,181837947,181837947,181837947,181837947,0,"PushPop","[prof_range]: iter 6",
2,25.1,177622641,1,177622641,177622641,177622641,177622641,0,"PushPop","[prof_range]: iter 9",
3,25.1,177254919,1,177254919,177254919,177254919,177254919,0,"PushPop","[prof_range]: iter 7",
4,24.1,170843422,1,170843422,170843422,170843422,170843422,0,"PushPop","[prof_range]: iter 8",
...GUI guide
Settings
Processes: Specifies the processes to include in the statistics. The default is "All", which includes all processes.
Maximum number of results: The maximum number of rows to display. The default is -1, which means unlimited.
Pie chart: Aggregates the total time for all HGTX ranges, providing a visual overview of the time percentage for each HGTX range.
2.3.14 OSRT API
This report summarizes the execution time of OS runtime APIs from an asysrep report, sorted in descending order by total execution time.
Required trace option: --trace osrt
Statistics rule
This report aggregates data by OSRT API name, summing the execution time for all calls to the same API. The results are sorted in descending order by total execution time.
The osrt_sum table includes the following columns:
Note: The 'Time' column shows a function's execution time as a percentage of the total time for all functions listed in the report, not of the application's total execution time.
Row# : Row number of the OS runtime summary
Time [%] : Percentage of 'Total Time'
Total Time [ns] : Total time used by all executions of this function
Num Calls : Number of calls to this function
Avg [ns] : Average execution time of this function
Med [ns] : Median execution time of this function
Min [ns] : Smallest execution time of this function
Max [ns] : Largest execution time of this function
StdDev [ns] : Standard deviation of the time of this function
Name : Name of the functionCommand line usage
asys stats -r osrt_sum report.asysrepFor detailed help, run asys stats --help-report osrt_sum.
Example output:
Row#,Time (%),Total Time (ns),Num Calls,Avg (ns),Med (ns),Min (ns),Max (ns),StdDev (ns),Name,
1,85.6,8901500720,255,34907845,4994783,1095,348667026,63811239,"pthread_cond_wait",
2,6.9,721563692,1105,652998,1055069,52083,1072141,485233,"nanosleep",
3,6.7,700892565,7,100127509,100123388,100121020,100143853,8411,"poll",
...GUI guide
Settings
This rule has no configurable settings.
Pie chart: Visualizes the percentage of total execution time consumed by each OS runtime API.
2.3.15 PCCL transmission stages
This report analyzes PCCL transmission stage durations from an asysrep report and sorts the stages in descending order by total duration.
Required asys trace option: --trace pccl
Statistics rule
At the per-thread, per-channel, per-direction, and per-transmission-stage level, this report calculates metrics such as duration (average, maximum, minimum, and standard deviation) and the number of instances.
The pccl_stage_sum table includes the following columns:
Row# : Row number of the stage summary
PID : Process identifier
Device ID : PPU device identifier
TID : Thread identifier
Channel ID : PCCL channel identifier
Channel Type : PCCL channel type
Name : Stage name
Total Time [ns] : Total duration of the stage
Instances : Number of instances
Avg [ns] : Average of stage duration
Med [ns] : Median of stage duration
Min [ns] : Minimum of stage duration
Max [ns] : Maximum of stage duration
Stdev [ns] : Standard deviation of stage durationCommand-line usage
asys stats --report pccl_stage_sum report.asysrepFor detailed help, run asys stats --help-report pccl_stage_sum.
The following example shows the report output:
Row#,PID,Device ID,TID,Channel ID,Channel Type,Name,Total Time,Instances,Avg,Med,Min,Max,Stdev,
1,631660,0,631712,1,RX,RecvWait,305528068,24,12730336,13761981,9669723,18509164,2407844,
2,631660,1,631711,1,TX,GPUWait,299988851,24,12499535,12786840,9625474,16580086,2217489,
3,631660,0,631712,1,TX,GPUWait,297674072,24,12403086,12579239,9570100,17151019,2208876,
...GUI user guide
Settings
This rule has no configurable settings.
Pie Chart Statistics: Displays a breakdown of the total PCCL stage duration by stage, process, or device. This chart shows each group's percentage of the total duration.
2.3.16 HGGC PPU memory size
This report summarizes the memory size of HGGC PPU memory operations (memcpy and memset) from an asysrep report and sorts the results in descending order by total memory size.
Required asys trace option: --trace hggc
Statistics rule
The report aggregates the memory size for each memory operation type and sorts the results in descending order by total memory size.
memcpy is categorized based on the copy type, such as
[HGGC memcpy Host-to-Device]/[HGGC memcpy Device-to-Host].
The columns in the hggc_ppu_mem_size_sum table are:
Row# : Row number of the memory summary
Total [bytes] : Total memory used by this operation
Count : Number of executions of this operation
Avg [bytes] : Average memory size of this operation
Med [bytes] : Median memory size of this operation
Min [bytes] : Minimum memory size of this operation
Max [bytes] : Maximum memory size of this operation
StdDev [bytes] : Standard deviation of the memory size of this operation
Operation : Name of the memory operationCommand-line usage
asys stats --report hggc_ppu_mem_size_sum report.asysrepFor details, run asys stats --help-report hggc_ppu_mem_size_sum.
Example output:
Row#,Total (bytes),Count,Avg (bytes),Med (bytes),Min (bytes),Max (bytes),StdDev (bytes),Operation,
1,9896352144,564,17546723,1024,12,556254464,74087070,"[HGGC memset]",
2,536876208,342,1569813,16,4,67108864,10157989,"[HGGC memcpy Host-to-Device]",
3,156,44,3,1,1,16,4,"[HGGC memcpy Device-to-Host]",
4,64,12,5,4,4,8,1,"[HGGC memcpy Device-to-Device]",GUI guide
Settings
This rule has no configurable settings.
Pie chart statistics: Aggregates the memory size for all memory operations and visualizes the breakdown in a pie chart.
2.3.17 HGGC PPU memory time summary
This report summarizes the time spent on HGGC PPU memory operations (memcpy and memset) from an asysrep report and sorts the results in descending order by total time.
This report requires the --trace hggc asys collection option.
Statistical rules
The report aggregates the total time for each memory operation type and sorts them in descending order.
The report differentiates
memcpyoperations by their copy type, such as[HGGC memcpy Host-to-Device]and[HGGC memcpy Device-to-Host].
The hggc_ppu_mem_time_sum table includes the following columns:
Note: 'Time [%]' is the operation's percentage of the total time for all operations in this report, not of the application's total execution time.
Row#: Row number of the memory summary
Time [%]: Percentage of 'Total time'
Total time [ns]: Total time for all executions of this operation
Count: Number of executions of this operation
Avg [ns]: Average execution time of this operation
Med [ns]: Median execution time of this operation
Min [ns]: Minimum execution time of this operation
Max [ns]: Maximum execution time of this operation
StdDev [ns]: Standard deviation of the execution time of this operation
Operation: Name of the memory operationCommand-line usage
asys stats --report hggc_ppu_mem_time_sum report.asysrepFor detailed help, run asys stats --help-report hggc_ppu_mem_time_sum.
Example report output:
Row#,Time [%],Total time [ns],Count,Avg [ns],Med [ns],Min [ns],Max [ns],StdDev [ns],Operation,
1,69.3,19697314,342,57594,1240,1080,2413129,364424,"[HGGC memcpy Host-to-Device]",
2,30.6,8687991,564,15404,720,120,496801,67433,"[HGGC memset]",
3,0.1,20920,44,475,400,320,960,165,"[HGGC memcpy Device-to-Host]",
4,0.1,15600,12,1300,1240,920,1800,293,"[HGGC memcpy Device-to-Device]",GUI guide
Settings
No settings are available for this rule.
Pie chart statistics: Displays a pie chart showing the time distribution for each memory operation.
2.3.18 PCCL desynchronization tracking
This report analyzes PCCL kernel execution from an asysrep report by grouping kernels into communication groups. It calculates the desync rate within each group and exports details about the latest-starting kernel to help identify synchronization issues.
Required asys trace option:
--trace hggc
Statistics rule
This rule groups PCCL kernels with overlapping execution times into a communication group and calculates the following time values for each group:
overlap time: The duration of simultaneous execution for all kernels in the communication group.duration: The time from the start of the first kernel to the end of the last kernel in the communication group.
The desync rate is calculated as: (duration - overlap time) / duration. The report outputs one row of trace data for each communication group, sorted in descending order by desync rate.
The pccl_desync_trace table contains the following columns:
Row# : Row number of the PCCL communication trace
Start [ns] : Start time of the PCCL communication
Duration [ns] : Elapsed duration of the PCCL communication
Overlap [ns] : Overlapping duration of all PCCL kernels
Desync Rate [%] : Desynchronization rate of the PCCL communication
Last Process : Process ID of the last kernel to start in this PCCL communication
Last Device : Device ID of the last kernel to start in this PCCL communication
Last Kernel : ID of the last kernel to start in this PCCL communication
Max Duration [ns] : Longest kernel duration in this PCCL communication
Min Duration [ns] : Shortest kernel duration in this PCCL communication
Avg Duration [ns] : Average kernel duration in this PCCL communication
Instances : Number of kernels in this PCCL communication
Kernel Name : Name of the PCCL kernelCommand-line usage
asys stats -r pccl_desync_trace report.asysrepFor detailed help, run asys stats --help-report pccl_desync_trace. Supported options include:
hgtx-name: Prefixes the kernel name with the name of the nearest preceding HGTX range, separated by a
/.base: Aggregates and outputs statistics using the kernel's base name (function name only, without parameters).
mangled: Aggregates and outputs statistics using the kernel's mangled name.
device: Specifies a list of PPU device IDs to include in the statistics. Separate multiple IDs with a
/. By default, statistics for all PPU devices are included.
Example output:
Row#,Start (ns),Duration (ns),Overlap (ns),Desync Rate (%),Last Process,Last Device,Last Kernel,Max Duration (ns),Min Duration (ns),Avg Duration (ns),Instances,Kernel Name,
1,113393971366,699213,15256,97.8,1142413,0,38654,697883,15400,538712,8,"pcclKernel_AllReduce_RING_LL_Sum_uint8_t(ncclWorkElem)",
2,113395036610,267497,12450,95.3,1142419,6,38798,266721,14040,191886,8,"pcclKernel_AllReduce_RING_LL_Sum_uint8_t(ncclWorkElem)",
...GUI
Settings
Kernel Name Mode: Specifies how to display the kernel name. Available modes:
Base: Displays the kernel's base name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
PPU Devices: Filters the results by the selected PPU devices. The default is "All", which includes data from all PPU devices. This field is required.
Add HGTX name as a prefix: When enabled, prefixes the kernel name with the name of the nearest preceding HGTX range, separated by a
/. This option is disabled by default.
Table context menu
Highlights or zooms to the latest-starting kernel of the selected trace in the Timeline View.
Pie chart: Aggregates data for the process or device with the latest-starting kernel for each instance of PCCL desynchronization. This chart helps visualize which process or device most often causes desynchronization.
2.3.19 PCCL desynchronization summary
This report analyzes PCCL kernel execution from an asysrep report by grouping kernels into communication groups. It calculates the desynchronization rate for each group and provides a statistical summary for all communication groups that share the same PCCL kernel name.
Required asys collection option: --trace hggc
Statistics Rule
This rule groups PCCL kernels with overlapping execution times into a communication group. For all kernels in each group, the following time values are calculated:
overlap duration: The duration of simultaneous execution for all kernels in the group.duration: The time from the start of the first kernel to the end of the last kernel in the communication group.
The desynchronization rate is calculated as: (duration - overlap duration) / duration.
The report aggregates statistics, such as total duration and desynchronization rate, for communication groups associated with the same kernel name. The results are sorted in descending order by 'Total Duration'.
The columns in the pccl_desync_summary table are described as follows:
Note that the 'Time (%)' column shows a kernel's 'Total Duration' as a percentage of the sum of 'Total Duration' for all kernels in the report. It does not represent a percentage of the application's total execution time.
Row# : Row number of PCCL communication summary
Time (%) : Percentage of 'Total Duration'
Count : Number of communication groups for this kernel
Desync Avg (%) : Average desynchronization rate of this PCCL kernel
Desync Med (%) : Median desynchronization rate of this PCCL kernel
Desync Min (%) : Minimum desynchronization rate for this kernel
Desync Max (%) : Maximum desynchronization rate for this kernel
Desync StdDev (%) : Standard deviation of desynchronization rate of this PCCL kernel
Total Duration (ns) : Total elapsed duration for all communication groups of this kernel
Total Overlap (ns) : Total overlap duration for all communication groups of this kernel
Kernel Name : Name of the PCCL kernelCommand-Line Usage
asys stats -r pccl_desync_summary report.asysrepFor detailed help, run asys stats --help-report pccl_desync_summary. Supported options include:
hgtx-name: Prefixes the kernel name with the name of the HGTX range closest to the kernel launch, separated by a
/.base: Aggregates and outputs statistics by using the kernel's short name (function name only, without parameters).
mangled: Aggregates and outputs statistics by using the kernel's mangled name.
device: Specifies the PPU device IDs to analyze. Use a
/to separate multiple IDs. If this option is omitted, statistics for all PPU devices are collected by default.
The following is an example of the report output:
Row#,Time (%),Count,Desync Avg (%),Desync Med (%),Desync Min (%),Desync Max (%),Desync StdDev (%),Total Duration (ns),Total Overlap (ns),Kernel Name,
1,95.4,4,98.3,98.9,95.3,100.0,1.9,931583768,60421,"pcclKernel_AllReduce_RING_LL_Sum_uint8_t(ncclWorkElem)",
2,4.6,1,100.0,100.0,100.0,100.0,0.0,44549251,17168,"pcclKernel_AllReduce_RING_LL_Sum_double(ncclWorkElem)",GUI Guide
Settings
Kernel Name Mode: Sets the display mode for kernel names. The following modes are available:
Base: Displays the kernel's short name (function name only, without parameters).
Mangled: Displays the kernel's mangled name.
Demangled: Displays the kernel's demangled name (default).
PPU Devices: Filters the results by the selected PPU devices. The default is "All", which includes all PPU devices. This field is required.
Add HGTX name as a prefix: Prefixes the kernel name with the name of the HGTX range closest to its launch, separated by a
/. This option is unchecked by default.
Pie Chart Statistics: Displays a pie chart showing the proportion of 'Total Duration' for each kernel.