Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the AVX2KI Library

ScaNN cannot directly run on the Arm platform. However, you can use the AVX2KI library to convert the Intel intrinsics instruction functions in the ScaNN source code into Arm-compatible instructions so that ScaNN can run on the Arm platform.

  • The AVX2KI library is contained in the Kunpeng System Library (KSL) software package. You only need to install the KSL software package.
  1. Obtain the KSL software package from the Kunpeng community and decompress it to obtain the binary RPM package boostkit-ksl-2.1.0-1.aarch64.rpm.

    Package name: BoostKit-ksl_2.1.0.zip

    Contact Huawei technical support.

  2. Use PuTTY to log in to the server as the root user.
  3. Upload the KSL binary RPM package to the server.
  4. Install the KSL binary RPM package. This document uses boostkit-ksl-2.1.0-1.aarch64.rpm as an example.
    1
    rpm -ivh boostkit-ksl-2.1.0-1.aarch64.rpm
    

    After the installation, the system automatically adds the path of the lib folder, that is, /usr/local/ksl/lib, to the environment variable LD_LIBRARY_PATH.

  5. Perform the verification.
    1
    2
    ls -al /usr/local/ksl/lib/
    ls -al /usr/local/ksl/include/
    

    If the command output shows that the libavx2ki.so dynamic library exists in the /usr/local/ksl/lib directory and the avx2ki.h header file exists in the /usr/local/ksl/include directory, the installation is successful.