--host_env_os
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 type of the model operating environment.
If this option is not set, the OS type 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_cpu. 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_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 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
Dependencies and Restrictions
None