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

Installing ScaLAPACK

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the ScaLAPACK installation package:
    tar -xvf scalapack-2.1.0.tgz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd scalapack-2.1.0
  4. Run the following command to copy and paste the file:
    cp SLmake.inc.example SLmake.inc
  5. Modify the SLmake.inc file.
    1. Open SLmake.inc.
      vi SLmake.inc
    2. Press i to enter the insert mode and modify the file as follows:
      BLASLIB    = -L/path/to/OPENBLAS/lib -lopenblas 
      LAPACKLIB  = -L/path/to/OPENBLAS/lib -lopenblas 
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following commands to perform compilation:
    make
  7. Run the following command to copy the generated link library to the installation directory:
    cp libscalapack.a /path/to/SCALAPACK
  8. Run the following commands to add the environment variables:
    export LD_LIBRARY_PATH=/path/to/SCALAPACK:$LD_LIBRARY_PATH