Rate This Document
Findability
Accuracy
Completeness
Readability

Installing OpenBLAS

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the OpenBLAS installation package:
    cd /path/to/OPENBLAS
    tar -xvf OpenBLAS-0.3.6.tar.gz
  3. Run the following command to go to the directory generated after decompression:
    cd OpenBLAS-0.3.6
  4. Run the following commands to configure environment variables:
    export CC=`which gcc`
    export CXX=`which g++`
    export FC=`which gfortran`
  5. Run the following commands to modify the Makefile.system file:
    1. Open the Makefile.system file.
      vi Makefile.system
    2. Type :1161 to go to line 1161 and press i to go to the insert mode.

      Before the modification:

      COMMON_OPT = -O2
      After the modification:
      COMMON_OPT = -O2 -lgfortran
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following commands to perform the compilation and installation:
    mkdir install
    make -j
    make PREFIX=/path/to/OPENBLAS/OpenBLAS-0.3.6/install install
  7. Run the following commands to configure environment variables:
    export MATH_ROOT=/path/to/OPENBLAS/OpenBLAS-0.3.6/install