OpenBLAS Installation Reference

The current FeatureRetrieval is built and released based on OpenBLAS v0.3.9. You are advised to use OpenBLAS of the corresponding version. This section uses OpenBLAS v0.3.9 as an example for installation reference. The specific steps may vary depending on the actual OpenBLAS version and environment.

  1. Download the OpenBLAS v0.3.9 source package and decompress it.
    wget https://github.com/xianyi/OpenBLAS/archive/v0.3.9.tar.gz -O OpenBLAS-0.3.9.tar.gz
    tar -xf OpenBLAS-0.3.9.tar.gz
  2. Go to the OpenBLAS directory.
    cd OpenBLAS-0.3.9
  3. Perform build and installation.
    make FC=gfortran USE_OPENMP=1 -j
    # By default, OpenBLAS is installed in the /opt/OpenBLAS directory.
    make install
    # Or run the following command to install it in the specified path.
    #make PREFIX=/your_install_path install
  4. Configure the library path.
    ln -s /opt/OpenBLAS/lib/libopenblas.so /usr/lib/libopenblas.so
    # Configure /etc/profile.
    vim /etc/profile
    # Add export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH to /etc/profile.
    source /etc/profile