Rate This Document
Findability
Accuracy
Completeness
Readability

Installing KSL

The following describes how to install KSL using an RPM package. Verify KSL after the installation.

Procedure

  1. Obtain the KSL software package by referring to Obtaining the Software Package 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.

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 command output contains the installation path, the installation is successful.

    LD_LIBRARY_PATH=/usr/local/ksl/lib:

    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 that 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
    • To use KQMalloc, add -L /usr/local/ksl/lib -lkqmalloc.