我要评分
获取效率
正确性
完整性
易理解

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:
    tar -xvf OpenBLAS-0.3.7.tar.gz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd OpenBLAS-0.3.7
  4. (Optional) If the GCC compiler version is not GNU 9 or later, modify the Makefile.arm64 file and run the gcc -v command to query the GCC compiler version.
    1. Open Makefile.arm64.
      vi Makefile.arm64
    2. Press i to enter the insert mode and delete the content in the red box shown in the following figure:

    3. Press Esc, type :wq!, and press Enter to save the changes and exit.
  5. Run the following commands to install OpenBLAS:
    make BINARY=64 FC=/usr/bin/gfortran USE_THREAD=1
    make PREFIX=/path/to/OPENBLAS install
  6. Run the following command to set the OpenBLAS environment variable:
    export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:$LD_LIBRARY_PATH