Rate This Document
Findability
Accuracy
Completeness
Readability

Installing KML

Procedure

Installing RPM packages

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

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

    In the preceding command, xxxx indicates the version number.

Installing DEB packages

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

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

    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 KML installation path /usr/local/kml/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/kml). The include folder contains the header files of the sublibrary, and the lib folder contains the dynamic library files of KML.

  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 dependent library of the program is correctly linked.
    • To use KML_BLAS, add the following information:
      • Single-thread version without locking: -L /usr/local/kml/lib/kblas/nolocking -lkblas
      • Single-thread version with locking: -L /usr/local/kml/lib/kblas/locking -lkblas
      • Multi-thread version using pthread: -L /usr/local/kml/lib/kblas/pthread -lkblas
      • Multi-thread version using OpenMP: -L /usr/local/kml/lib/kblas/omp -lkblas
    • To use KML_VML, add the following information:
      • Single-thread version: -L /usr/local/kml/lib/kvml/single -lkvml
      • Multi-thread version: -L /usr/local/kml/lib/kvml/multi -lkvml
    • To use KML_SPBLAS, add the following information:
      • Single-thread version: -L /usr/local/kml/lib/kspblas/single -lkspblas
      • Multi-thread version: -L /usr/local/kml/lib/kspblas/multi -lkspblas
    • To use KML_FFT, add the following information:
      • Single-precision version: -L /usr/local/kml/lib -lkfftf
      • Double-precision version: -L /usr/local/kml/lib -lkfft
    • To use KML_MATH, add the following information:
      • High-performance version: -L /usr/local/kml/lib -lkm -lm
      • High-precision version: -L /usr/local/kml/lib -lkm_l9 -lm
    • To use KML_SVML, add -L /usr/local/kml/lib -lksvml -lm.
    • To use KML_SOLVER, add -L /usr/local/kml/lib -lksolver -lkservice.
    1. The KML_BLAS library file path on which the KML_LAPACK library depends is /usr/local/kml/lib/kblas/omp. If you need to use KML_LAPACK, add -L /usr/local/kml/lib/kblas/omp. After adding the link path, run the LDD command to check whether the program is correctly linked.
    2. The KML_LAPACK library also depends on the kservice library, which is stored in the /usr/local/kml/lib directory. To use KML_LAPACK, add -lkservice.
    3. The KML_SOLVER library depends on the kservice library, which is located in the /usr/local/kml/lib directory. To use KML_SOLVER, add -lkservice.

    If the KML of an earlier version has been installed, uninstall it by referring to Uninstalling the KML. Then install the KML of the desired version.