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

Installing ScaLAPACK

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the ScaLAPACK installation package.
    tar -xvf 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 test case file.
      vi SLmake.inc
    2. Press i to enter the insert mode.

      Add the following content to line 18:

      $(LIBS) += -fuse-ld=lld
      Modify the content in lines 58 and 59 in the SLmake.inc file.
      BLASLIB       =/path/to/OPENBLAS/lib/libopenblas.a
      LAPACKLIB     =/path/to/OPENBLAS/lib/libopenblas.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. Perform the compilation and installation.
    make
  7. Copy the generated link library to the installation directory.
    cp libscalapack.a /path/to/SCALAPACK