Rate This Document
Findability
Accuracy
Completeness
Readability

Installing OpenBLAS

To ensure that the OpenBLAS version used for compilation meets the Milvus requirements, it is advised to install OpenBLAS 0.3.10 or later.

OpenBLAS is an optimized linear algebra library that provides high-performance Basic Linear Algebra Subprograms (BLAS) and Linear Algebra Package (LAPACK) implementations. In the Milvus project, OpenBLAS provides efficient and optimized linear algebra computing support, enabling Milvus to significantly improve computing performance when processing large-scale vector data.

  1. Download the OpenBLAS source package.
    1
    wget https://github.com/xianyi/OpenBLAS/archive/v0.3.10.tar.gz -O OpenBLAS-0.3.10.tar.gz --no-check-certificate
    
  2. Decompress the source package.
    1
    tar -xf OpenBLAS-0.3.10.tar.gz
    
  3. Perform the compilation and installation.
    1
    2
    3
    cd OpenBLAS-0.3.10
    make FC=gfortran USE_OPENMP=1 -j
    make install
    

    If an error is reported during compilation indicating that the x86 architecture is not supported, check the supported architecture in the TargetList.txt file and manually specify the architecture during compilation. For example, assume that the architecture is SKYLAKEX.

    1
    make FC=gfortran USE_OPENMP=1 TARGET=SKYLAKEX -j
    
  4. Configure environment variables.
    1
    2
    echo 'export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
    source ~/.bashrc
    
  5. Check whether the installation is successful.
    1
    ll /opt/OpenBLAS/
    

    The installation is successful if the following information is displayed:

    1
    2
    3
    4
    total 12
    drwxr-xr-x. 2 root root 4096 Nov 22 17:31 bin
    drwxr-xr-x. 2 root root 4096 Nov 22 17:38 include
    drwxr-xr-x. 4 root root 4096 Nov 22 17:38 lib