Installing OpenBLAS
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install BLAS and LAPACK:
yum install blas64.aarch64 blas64-devel.aarch64 lapack64.aarch64 lapack64-devel.aarch64 -y
If you use a non-default compiler to install OpenBLAS, download OpenBLAS and use the specified compiler to install it. Specify the OpenBLAS path for compilation and installation in compilation and installation.
- Run the following command to decompress the OpenBLAS installation package:
tar xvf OpenBLAS-0.3.6.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd OpenBLAS-0.3.6
- Run the following command to perform the configuration:
export CC=`which gcc` export CXX=`which g++` export FC=`which gfortran`
- Run the following commands to perform the compilation and installation:
make make PREFIX=/path/to/OPENBLAS install
- Run the following commands to set the OpenBLAS environment variable:
export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment