Installing OpenBLAS
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the installation package:
tar xzvf OpenBLAS-0.3.9.tar.gz
- Run the following command to go to the directory generated after decompression:
cd OpenBLAS-0.3.9/
- Run the following commands to set environment variables:
export CC=`which gcc`
export CXX=`which g++`
export FC=`which gfortran`
- Run the following commands to perform compilation and installation:
make -j 32
make PREFIX=/path/to/OPENBLAS install
- Run the following commands to set OpenBLAS environment variables:
export LIBRARY_PATH=/path/to/OPENBLAS/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment