--export_compile_stat
Applicability
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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 the file:
- session_and_graph_id_xx_xx: thread and graph ID of the fusion result.
- graph_fusion: graph fusion.
- ub_fusion: UB fusion.
- match_times: number of times that the fusion pattern is matched during graph build.
- effect_times: actual number of times that the fusion takes effect.
- repository_hit_times: number of times that the UB fusion repository is hit.
See Also
This option is used to generate operator fusion information, while --fusion_switch_file is used to disable specified fusion patterns. Disabled fusion patterns are 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 when graph build is complete. If graph build is complete, the result file of operator fusion information is generated even if the program is interrupted in advance.
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 is saved in $ASCEND_WORK_PATH/FE/${Process ID}/fusion_result.json.
Example
--export_compile_stat=1
Restrictions
None