--host_env_os

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

If the OS and its architecture of the model build environment are inconsistent with those of the model operating environment, set this option to the OS type of the model operating environment.

If this option is not set, the OS type of the model build environment where the ATC tool is located is used by default.

See Also

If the OS and its architecture of the model build environment are inconsistent with those of the model operating environment, use this option together with --host_env_cpu. --host_env_os is used to set the OS type, and --host_env_cpu is used to set the OS architecture.

Argument

Argument: Run the atc --help command to view the supported values of --host_env_os.

Default: Run the atc --help command to view the default value of the --host_env_os option or view the value in the ${INSTALL_DIR}/opp/scene.info file.

Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.

Suggestions and Benefits

None

Example

--host_env_os=linux --host_env_cpu=x86_64
  • If the generated offline model contains the OS type and architecture, for example, xxx_linux_x86_64.om, the model can run only on the x86_64 Linux OS.
  • If the generated offline model does not contain the OS type and architecture, for example, xxx.om, all OSs supported by the CANN package support the model.

Dependencies and Restrictions

None