Tool Description and Risk Analysis

AscendNPU IR contains the following binary tools.

Table 1 AscendNPU IR description

Tool

Relative Path

Description

Risk Analysis

Reason for Retaining

bishengir-compile

bishengir/bin/bishengir-compile

Ascend high-level abstract compilation tool.

It can compile AscendNPU IR into a binary file that can be executed on the Ascend 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 compilation optimization tool.

It can compile the HIVM dialect IR of AscendNPU IR into a binary file that can be executed on the Ascend AI Processor through 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 compilation tool.

It can compile the minimum set of HIVM dialect OP definitions of AscendNPU IR into a binary file that can be executed on the Ascend 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.