Installing ScaLAPACK
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the ScaLAPACK installation package.
tar -xvf scalapack-2.0.2.tgz
- Go to the directory generated after the decompression.
cd scalapack-2.0.2
- Create an SLmake.inc file.
cp SLmake.inc.example SLmake.inc
- Edit the SLmake.inc file.
- Open the test case file.
vi SLmake.inc
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the test case file.
- Perform the compilation and installation.
make
- Copy the generated link library to the installation directory.
cp libscalapack.a /path/to/SCALAPACK
Parent topic: Configuring the Compilation Environment
