Installing BiSheng Compiler
TVM requires LLVM for CPU code generation. The LLVM provided by BiSheng Compiler can optimize the code generation of TVM running on the Kunpeng processor.
- Download the BiSheng Compiler software package by following instructions in OS and Software Requirements.
- Upload the BiSheng Compiler software package to the BiSheng compilation installation directory /path/to/BiShengCompiler on the server and decompress the package.
1tar -zxvf BiShengCompiler-3.2.0.1-aarch64-linux.tar.gz
- Set the BiSheng Compiler environment variables.
1 2
export PATH=/path/to/BiShengCompiler/BiShengCompiler-3.2.0.1-aarch64-linux/bin:$PATH export LD_LIBRARY_PATH=/path/to/BiShengCompiler/BiShengCompiler-3.2.0.1-aarch64-linux/lib:/path/to/BiShengCompiler/BiShengCompiler-3.2.0.1-aarch64-linux/lib/aarch64-unknown-linux-gnu:$LD_LIBRARY_PATH
- Check whether the installation is successful. If the command output contains the BiSheng Complier version information, the installation is successful.
1clang -v
Parent topic: Configuring the Compilation Environment