Installing OpenBLAS
Procedure
- Use PuTTY to log in to the server as the root user.
- Use an SFTP tool to upload the OpenBLAS installation package to the /path/to/OPENBLAS directory.
- Run the following command to install dependencies:
yum install blas blas-devel lapack lapack-devel -y
- Run the following command to decompress the installation package:
cd /path/to/OPENBLAS && tar -zxf OpenBLAS-0.3.9.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd OpenBLAS-0.3.9/
- Run the following commands to set the environment variables:
export CC=`which gcc` export CXX=`which g++` export FC=`which gfortran`
- Run the following commands to perform the compilation and installation:
make -j 32 make PREFIX=/path/to/OPENBLAS install
Parent topic: Configuring the Compilation Environment