Installing SRA_Recall
This section describes how to install SRA_Recall 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
- Obtain the SRA_Recall software package by performing Obtaining the Software Package and decompress it to obtain the binary RPM package.
- Install the RPM package.
1rpm -ivh boostkit-sra_recall-xxxx.aarch64.rpm
After the installation is complete, the environment variable LD_LIBRARY_PATH is automatically added to /etc/profile, that is, the /usr/local/sra_recall/lib directory where the dynamic library files of KBest and KVecturbo are located, and the /usr/local/sra_recall/lib/kscann directory where the dynamic library files and static library files of KScaNN are located.
In the preceding command, xxxx indicates the version number.
- Install the environment dependency.
1yum install numactl-devel python
- Install the WHL file.
1pip install kbest-xxxx-cp39-cp39-linux_aarch64.whl
In the preceding command, xxxx indicates the version number.
Verification
- Run the source command or log in to the terminal again for the environment variable to take effect.
1source /etc/profile
- Check whether the environment variable LD_LIBRARY_PATH contains the KBest installation path /usr/local/sra_recall/lib and the KScaNN installation path /usr/local/sra_recall/lib/kscann.
1env | grep LD_LIBRARY_PATH
If the variable contains those installation paths, the installation is successful.
After the installation, the target files are generated in the installation path (the default path is /usr/local/sra_recall). The include folder contains the header files of KBest and KVecturbo, and the lib folder contains the dynamic library files of KBest and KVecturbo. The include/kscann folder contains the KScaNN header files, and the lib/kscann folder contains the KScaNN dynamic and static library files.
- Run the pip show command to check whether KBest of the xxxx version has been installed. xxxx indicates the version number.
1pip show kbest
If the command output contains "Name: kbest Version: xxxx", the installation is successful.