Common Compilation Options

The following table describes common compilation options. For details about all compilation options, see the BiSheng Compiler options.

Option

Required (Yes/No)

Description

-help

No

Displays the help information.

--npu-arch

Yes

Specifies the AI processor architecture for compilation. The value is dav-<arch-version>, where <arch-version> indicates the NPU architecture version number. For details about the architecture version number of each product model, see Table 1.

-x

No

Specifies the compilation language.

If this parameter is set to asc, the Ascend C programming language is used.

-o <file>

No

Specifies the name and location of the output file.

-c

No

Compiles and generates the target file.

--enable-simt

Yes

Specifies the SIMT programming scenario.