--op_compiler_cache_dir

Description

Sets the disk cache directory for operator build.

See Also

To specify the disk cache directory for operator build, use --op_compiler_cache_dir together with --op_compiler_cache_mode.

Argument

Argument: Disk cache directory for operator build.

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

Restrictions:

  • If the directory specified by --op_compiler_cache_dir exists and is valid, a kernel_cache subdirectory is automatically created. If the specified directory does not exist but is valid, the system automatically creates this directory and the kernel_cache subdirectory.
  • Do not store other self-owned content in the default cache directory. The self-owned content will be deleted together with the default cache directory during software package installation or upgrade.
  • The non-default cache directory specified by this option cannot be deleted. The directory will not be deleted during software package installation or upgrade.

Default: $HOME/atc_data

Suggestions and Benefits

None

Example

--op_compiler_cache_dir=$HOME/atc_data --op_compiler_cache_mode=enable

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Restrictions

The disk cache directory for operator build can be configured through the ASCEND_CACHE_PATH environment variable, in addition to by setting the --op_compiler_cache_dir option. The priority of the several methods is as follows:

--op_compiler_cache_dir option > environment variable ASCEND_CACHE_PATH > default saving path

For details about ASCEND_CACHE_PATH, see Environment Variables.