Installing ScaLAPACK
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the ScaLAPACK installation package.
tar -xvf scalapack-2.1.0.tgz
- Go to the directory generated after the decompression.
cd scalapack-2.1.0
- Run the following command to copy and paste the file:
cp SLmake.inc.example SLmake.inc
- Modify the SLmake.inc file.
- Open the SLmake.inc file.
vi SLmake.inc
- Press i to enter the edit mode and modify the file as follows:
BLASLIB=/path/to/LAPACK/libblas.a LAPACKLIB=/path/to/LAPACK/liblapack.a LIBS=$(LAPACKLIB) $(BLASLIB)
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the SLmake.inc file.
- Perform the compilation.
make
- Copy the generated static library to another directory.
cp *.a /path/to/EXTRA/mathlib
Parent topic: Configuring the Compilation Environment