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