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.
- 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.

- Use PuTTY to log in to the server as the root user.
- Upload the KSL binary RPM package to the server.
- Install the KSL binary RPM package. This document uses boostkit-ksl-2.1.0-1.aarch64.rpm as an example.
1rpm -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.
- 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.
Parent topic: Configuring the Compilation Environment