Rate This Document
Findability
Accuracy
Completeness
Readability

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.

  1. Download the BiSheng Compiler software package by following instructions in OS and Software Requirements.
  2. Upload the BiSheng Compiler software package to the BiSheng compilation installation directory /path/to/BiShengCompiler on the server and decompress the package.
    1
    tar -zxvf BiShengCompiler-3.2.0.1-aarch64-linux.tar.gz
    
  3. 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
    
  4. Check whether the installation is successful. If the command output contains the BiSheng Complier version information, the installation is successful.
    1
    clang -v