--export_compile_stat
Description
Generates the result file fusion_result.json of operator fusion information (including graph fusion and UB fusion) during graph build.
This file is used to record the fusion patterns used during graph build, where:
- session_and_graph_id_ xx_xx: Thread and graph ID to which the fusion result belongs.
- graph_fusion: Graph fusion.
- ub_fusion: UB fusion.
- match_times: Number of times that a fusion pattern is hit during graph build.
- effect_times: Number of times that a fusion pattern takes effect.
- repository_hit_times: Number of times that the repository is hit during UB fusion.
See Also
This parameter is used to generate operator fusion information. The --fusion_switch_file parameter can be used to disable a specified fusion pattern. The disabled fusion pattern is not displayed in the fusion_result.json file.
Argument
- 0: The result file of operator fusion information is not generated.
- 1 (default): The result file of operator fusion information is generated when the program exits normally.
- 2: The result file of operator fusion information is generated after graph build. That is, if the graph build is complete and the subsequent program is interrupted in advance, the result file of operator fusion information is also generated.
If the ASCEND_WORK_PATH environment variable is not set, the result file is generated in the current path where the atc command is executed by default. If the ASCEND_WORK_PATH environment variable is set, the result file fusion_result.json is saved in $ASCEND_WORK_PATH/FE/${Process ID}.
Example
--export_compile_stat=1
Applicability
Restrictions
None