-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
The program has been tested on Linux, HP Unix and Mac OS X, but should also be possible to migrate to other platforms. The instructions here assume you are using Ubuntu Linux.
- BLAS and LAPACK
- Lapack++
- ARPACK
BLAS and LAPACCK are highly optimized FORTRAN routines for linear algebra operations. If you are using a HPC cluster, normally they are already installed within packages like: Intel MKL and ATLAS. We can go to next step directly.
If you have Ubuntu or Linux Mint on your computer you can install ATLAS by running this command:
sudo apt-get install libatlas3gf-base libatlas-base-dev
You can also follow this guide to compile by yourself.
sudo apt-get install gfortran
Lapack++ provides some c++ classes based on BLAS and LAPACK.
- Download the source package from here.
- Extract the files and enter the directory.
- Suppose you want to install lapack++ in your home directory under usr, run the following commands:
./configure --enable-static=yes --enable-shared=no --prefix=$HOME/usr/
make
make install
if you want to use Intel MKL library run the flowing commands before the running the above commands:
export CC=icc
export CXX=icpc
export LIBS=$MKL_LIB
$MKL_LIB is the linking of tags for the MKL libraries, and you should consult your system administrators or your system wiki's for this information.
ARPACK is a FORTRAN package for spare matrix diagnalization. On Ubuntu and Linux Mint you can install it by running
sudo apt-get install libarpack2 libarpack2-dev