Rate This Document
Findability
Accuracy
Completeness
Readability

Installing KSL

Procedure

Installation using the RPM package

  1. Obtain the KSL software package by referring to 1 and decompress it to obtain the binary RPM package.
  2. Install KSL.
    rpm -ivh boostkit-ksl-xxxx.aarch64.rpm

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

    In the preceding command, xxxx indicates the version number.

Before installing RPM packages that are compiled using the BiSheng Compiler, ensure that the BiSheng Compiler has been installed from an RPM package. For details, see BiSheng Compiler Installation Guide.

Installation using the DEB package

  1. Obtain the KSL software package by referring to 1 and decompress it to obtain the binary DEB package.
  2. Install KSL.
    dpkg -i boostkit-ksl-xxxx.aarch64.deb

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

    In the preceding command, xxxx indicates the version number.

Verifying the Installation

  1. Run the source command or log in to the terminal again for the environment variables to take effect.
    source /etc/profile
  2. Check whether the environment variable LD_LIBRARY_PATH contains the KSL installation path /usr/local/ksl/lib.
    env | grep LD_LIBRARY_PATH

    If the variable contains the installation path, the installation is successful.

    After the installation, the corresponding files are generated in the installation path (the default path is /usr/local/ksl). The include folder contains the header files of the sub-libraries, and the lib folder contains the dynamic library files of KSL.

  3. Add the path of the dynamic library to the GCC compilation option to link the required dynamic library file. Then run the ldd command to check whether the dependency library of the program is correctly linked.
    To use AVX2KI, add the following information:
    • For the best performance version of the current server: -L /usr/local/ksl/lib -lavx2ki
    • For the Neon instruction implemented version: -L /usr/local/ksl/lib -lavx2neon
    • For the SVE instruction implemented version: -L /usr/local/ksl/lib -lavx2sve