Installing LAPACK on Linux

Lapack can be installed onto linux by downloading the lapack source code from here: http://www.netlib.org/lapack/lapack-3.3.1.tgz

Once the source code is downloaded you will need to unzip and untar the file. Then cd to the directory.

Next you will need to copy the make.inc.example to make.inc

[root@computer lapack-3.3.1]# cp make.inc.example make.inc

Modify the make.inc file so that it matched your computer’s configuration.

There are many make options available. Below is a listing of lapack make options as of lapack 3.3.1


all: lapack_install lib lapack_testing blas_testing
lib: lapacklib tmglib
#lib: blaslib variants lapacklib tmglib
clean: cleanlib cleantesting cleanblas_testing
lapack_install:
blaslib:
lapacklib:      lapack_install
variants:
tmglib:
lapack_testing: lib
variants_testing: lib variants
blas_testing:
cleanlib:
cleanblas_testing:
cleantesting:
cleanall: cleanlib cleanblas_testing cleantesting

Making all cant take some time, but it will yield a complete install. After this it is available for use.

Be the first to comment

Leave a Reply