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.tgz
- Run the following command to switch to the directory generated after decompression:
cd scalapack-2.0.2
- Run the following command to generate the SLmake.inc file:
cp SLmake.inc.example SLmake.inc
- Run the following command to edit the SLmake.inc file:
- Open SLmake.inc.
vi SLmake.inc
- Press i to enter the insert mode and modify lines 58 and 59 of the file.
BLASLIB = -L/path/to/OPENBLAS/lib -lopenblas LAPACKLIB = -L/path/to/OPENBLAS/lib -lopenblas
- Press Esc, enter :wq!, and press Enter to save the file and exit.
- Open SLmake.inc.
- Run the following command to perform compilation and installation:
make
- Run the following command to copy the generated link library to the installation directory:
cp libscalapack.a /path/to/SCALAPACK
- Run the following command to load environment variables:
export LD_LIBRARY_PATH=/path/to/SCALAPACK:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment