--export_compile_stat
Applicable Products
All processors
Description
Sets whether to generate the fusion_result.json result file 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. In this file:
- session_and_graph_id_xx_xx: thread and graph ID of the fusion result.
- graph_fusion: graph fusion.
- ub_fusion: UB fusion.
UB fusion is not supported on the
Ascend 950PR /Ascend 950DT , and therefore this information is not generated. - match_times: number of times fusion patterns were matched during graph build.
- effect_times: number of times the matched fusion patterns actually took effect.
- repository_hit_times: number of times the UB fusion optimization repository was hit.
UB fusion is not supported on the
Ascend 950PR /Ascend 950DT , and therefore this information is not generated.
See Also
This option is used to generate operator fusion information, while --fusion_switch_file is used to disable specified fusion patterns. These disabled patterns are not present in the fusion_result.json file.
Arguments
- 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 when graph build is complete. That is, the file is generated even if the subsequent program aborts early when graph build is complete.
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 ASCEND_WORK_PATH is set, the result file is saved to $ASCEND_WORK_PATH/FE/${Process ID}/fusion_result.json.
Example
--export_compile_stat=1
Restrictions
None