--host_env_cpu

Description

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

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

See Also

This option is used together with --host_env_os. You can use --host_env_os to set the OS type and use --host_env_cpu to set the OS architecture.

Argument

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

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

Replace ${INSTALL_DIR} with the actual CANN component directory. If the Ascend-CANN-Toolkit package is installed as the root user, the CANN component directory is /usr/local/Ascend/ascend-toolkit/latest.

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.

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Dependencies and Restrictions

None