Installing OpenBLAS
You are advised to use OpenBLAS of the corresponding version. This section provides installation reference of OpenBLAS v 0.3.10. The installation procedure depends on the actual OpenBLAS version and environment.
Procedure
- Download the OpenBLAS v0.3.10 source package and decompress it.
1 2
wget https://github.com/xianyi/OpenBLAS/archive/v0.3.10.tar.gz -O OpenBLAS-0.3.10.tar.gz tar -xf OpenBLAS-0.3.10.tar.gz
- Go to the OpenBLAS directory.
1cd OpenBLAS-0.3.10
- Perform build and installation.
1 2 3 4 5
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
- Configure the environment variables of the library path.
1 2 3 4 5
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
- Check whether the installation is successful.
1cat /opt/OpenBLAS/lib/cmake/openblas/OpenBLASConfigVersion.cmake | grep 'PACKAGE_VERSION "'
If the correct version information is displayed, the installation is successful.
Parent topic: Dependency Installation