Rate This Document
Findability
Accuracy
Completeness
Readability

Installing SRA_Inference

This section describes how to install SRA_Inference using the RPM package and verify the package. If you use parameters that are supported by the RPM package management tool but not described in this document, undefined behaviors may be introduced. Exercise caution when performing this operation.

Procedure

  1. Obtain the SRA_Inference software package by performing Obtaining the Software Package and decompress it to obtain the binary RPM package.
  2. Install the RPM package.
    rpm -ivh boostkit-sra_inference-xxxx.aarch64.rpm

    After the installation is complete, the environment variable LD_LIBRARY_PATH is automatically added to /etc/profile.

    For Kunpeng 920:

    The KTFOP NEON dynamic library files are in /usr/local/sra_inference/lib/neon.

    For new Kunpeng 920 processor model:

    • The KTFOP NEON dynamic library files are in /usr/local/sra_inference/lib/neon.
    • The KTFOP SVE dynamic library files are in /usr/local/sra_inference/lib/sve.

    In the preceding command, xxxx indicates the version number.

Verification

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

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

    After the installation, the target files are generated in the installation path (the default path is /usr/local/sra_inference), where the include folder contains the KTFOP header files, and the lib folder contains the KTFOP dynamic library files.

  3. Add the paths of the dynamic library and the header file 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.
    Link the KTFOP library.
    • NEON version: -I /usr/local/sra_inference/include -L /usr/local/sra_inference/lib/neon -lktfop
    • SVE version: -I /usr/local/sra_inference/include -L /usr/local/sra_inference/lib/sve -lktfop

    Link the KML_BLAS library.

    Single-thread lock version: -I /usr/local/kml/include/ -L /usr/local/kml/lib/kblas/locking -lkblas