--debug_dir

Applicable Products

All processors

Description

Sets the directory for storing the debug files generated by operator build during model conversion.

The temporary files include but are not limited to the operator binary file (.o), operator description file (.json), and .cce file, and are subject to the --op_debug_level argument.

See Also

If you need to specify the path for storing the operator build intermediate files, use --debug_dir together with --op_debug_level (this option is set to a non-zero value).

Arguments

Argument: Directory for saving the debug files generated by operator build.

Format: The directory can contain letters, digits, underscores (_), hyphens (-), periods (.), and Chinese characters.

Restrictions: Before running the atc command that includes this option, create the directory specified by this option and ensure that the directory has read and write permissions.

Default: The temporary files generated in the operator build process are saved in the ./kernel_meta folder in the directory where the atc command is executed.

Suggestions and Benefits

None

Example

To set the directory to debug_info, for example, run the following command:

--debug_dir=$HOME/module/out/debug_info --op_debug_level=1

Restrictions

In addition to --debug_dir, the environment variable ASCEND_WORK_PATH can be used to set the path for storing the debugging file generated by operator build. The priorities of the configuration methods are as follows: --debug_dir > ASCEND_WORK_PATH > default storage path.