我要评分
获取效率
正确性
完整性
易理解

Compiling KVecTurbo

This section describes how to compile KVecTurbo based on the source code.

Procedure

  1. Obtain the KVecTurbo source code as instructed in Obtaining the KVecTurbo Source Code and save it to the /path/to/kvecturbo directory.
  2. Install the dependencies.
    yum install gcc g++ cmake libgomp make
  3. KVecTurbo depends on the openEuler third-party library Huawei_Secure_C. Obtain the software package and decompress it. Assume that the directory is /path/to/binarylibs.
    cd /path/to/binarylibs
    wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/latest/binarylibs/gcc10.3/openGauss-third_party_binarylibs_openEuler_2203_arm.tar.gz --no-check-certificate
    tar -zxvf openGauss-third_party_binarylibs_openEuler_2203_arm.tar.gz
  4. Compile KVecTurbo.
    export BINARYLIBS=/path/to/binarylibs/openGauss-third_party_binarylibs_openEuler_2203_arm
    export CPLUS_INCLUDE_PATH=${BINARYLIBS}/kernel/platform/Huawei_Secure_C/comm/include/:$CPLUS_INCLUDE_PATH
    cd /path/to/kvecturbo
    sh build.sh

    The generated dynamic library file libkvecturbo.so.xxxx is stored in the out/lib folder, and the header file is stored in the out/include folder. xxxx indicates the version.