Command-Line Option Overview

Table 1 Options of op_compiler

OPC Option

Description

Required

Default Value

--help

Displays help information.

No

N/A

--op_params_dir

Specifies the absolute or relative path where the operator information file exported by the dump tool is stored.

Yes (Select --op_params_dir or

--kernel_name.

)

N/A

--kernel_name

Specifies the kernel name of the operator. Only debug build compilation is supported. This option must be used together with the --op_debug_config option.

Yes (Select --op_params_dir or

--kernel_name.

)

N/A

--job

Specifies the number of working processes during compilation. The minimum value is 1.

No

16

--compile_mode

This option can be set to tune, indicating that the tuning mode is enabled and the tuning and compilation process is executed. When this option is not used, the default compilation process is executed.

No

N/A

--output

Specifies the absolute or relative path of the output installation package, including the path and name of the installation package, for example, xxx/xxx/xxx.run.

No

static_kernel_${datatime}.run/debug_kernel_${datatime}.run file (generated in the current path where the tool is executed)

--soc_version

Specifies the model of the AI processor during operator compilation.

Yes (required only when the operator compilation function is executed)

N/A

--log

Specifies the log level during operator compilation.

No

null

--count

Counts the number of operator information .json files in the directory specified by --op_params_dir.

No

N/A

--op_debug_config

Specifies the path and name of the debugging configuration file. The path can be an absolute path or a relative path.

No

N/A