Rate This Document
Findability
Accuracy
Completeness
Readability

Installing KML_SPBLAS

Procedure

  1. Obtain the KML_SPBLAS source RPM package.
  2. Install KML_SPBLAS.
    rpm -ivh kml_spblas-xxxx.src.rpm
  3. Go to the SPECS subdirectory in the installation directory of the source package.
    cd ~/rpmbuild/SPECS 
  4. Compile and generate the binary installation package of KML_SPBLAS.
    rpmbuild -bb kml_spblas.spec 
  5. Install the binary package.
    rpm -ivh ~/rpmbuild/RPMS/aarch64/kml_spblas-xxxx.aarch64.rpm

    After the installation is complete, 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. Log out of the current terminal and log in again.
  2. Check whether the environment variable LD_LIBRARY_PATH contains the KML_SPBLAS 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 is successful, the corresponding files are generated in the installation path (/usr/local/kml by default). The include folder contains the header files, and the lib folder contains the KML_SPBLAS dynamic library files. Add -L /usr/local/kml/lib to the gcc compilation options. Link the dynamic library -lkspblas -lm. Add the compilation option -fopenmp, and run the ldd command to check whether the library on which the program depends is correctly linked.