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

Installing ScaLAPACK

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the ScaLAPACK installation package.
    tar xf scalapack-2.0.2.tgz
  3. Go to the directory generated after the decompression.
    cd scalapack-2.0.2
  4. Create an SLmake.inc file.
    cp SLmake.inc.example SLmake.inc
  5. Edit the SLmake.inc file.
    1. Open the SLmake.inc file.
      vi SLmake.inc
    2. Press i to enter the insert mode and edit lines 58 and 59 of the file.
      BLASLIB = /path/to/OpenBLAS/lib/libopenblas.a
      LAPACKLIB = /path/to/OpenBLAS/lib/liblopenblas.a

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Compile and install the software and copy the compiled file.
    make
    cp libscalapack.a /path/to/SCALAPACK/
  7. Load the environment variables.
    export LD_LIBRARY_PATH=/path/to/SCALAPACK:$LD_LIBRARY_PATH