--log

Description

Specifies the log level during operator compilation. This option is abbreviated as -l.

  • Log flushing:

    By default, the log is flushed to the following path: $HOME/ascend/log/debug/plog/plog-pid_*.log

    pid indicates the process ID, and * indicates the timestamp when the log file is created.

  • Log printing to the screen:
    Set the log level. After the log function is enabled, the log is not displayed on the screen by default. To display it, set the following environment variable in the window for running the op_compiler command:
    export ASCEND_SLOG_PRINT_TO_STDOUT=1

See Also

None

Arguments

Values:

  • debug: outputs debug, info, warning, error, and event logs.
  • info: outputs info, warning, error, and event logs.
  • warning: outputs warning, error, and event logs.
  • error: outputs error and event logs.

Default: No log is generated.

Suggestions and Benefits

None

Example

op_compiler --op_params_dir=<dump_dir>  --soc_version=<soc_version> --log=debug

Applicability

Atlas Training Series Product

Restrictions

None.