Tool Description and Risk Analysis

AscendNPU IR provides the following binary tools.

Table 1 AscendNPU IR description

Tool

Relative Path

Description

Risk Analysis

Reason for Retention

bishengir-compile

bishengir/bin/bishengir-compile

Ascend high-level abstract compile tool.

It compiles AscendNPU IR into a binary file that can be executed on the AI processor.

This low-risk tool can only be used to compile the IR for generating an executable binary file and no runtime information will be returned.

It is a basic binary tool set for AscendNPU IR.

bishengir-hivm-compile

bishengir/bin/bishengir-hivm-compile

HIVM IR compile optimization tool.

It compiles the HIVM dialect IR of AscendNPU IR into an executable binary file on the AI processor through compile optimization like automatic vectorization, memory allocation, and multi-pipeline synchronization.

This low-risk tool can only be used to compile the IR for generating an executable binary file and no runtime information will be returned.

hivmc

bishengir/bin/hivmc

HIVM IR compile tool.

It compiles the minimum set of HIVM dialect OP definitions of AscendNPU IR into an executable binary file on the AI processor.

This low-risk tool can only be used to compile the IR for generating an executable binary file and no runtime information will be returned.

bishengir-opt

bishengir/bin/bishengir-opt

Tool for converting, optimizing, and degrading AscendNPU IR.

It processes AscendNPU IR and outputs a lower-level or optimized AscendNPU IR.

This low-risk tool can only be used to convert, optimize, and degrade IR and no runtime information will be returned.