next up previous contents index
Next: MPA Up: Access to licensed Previous: GPHIGS



LAPACK may be obtained by anonymous ftp from as shown below.

Obtaining the LAPACK tar file

zfatal:/home/cp/jamie (4) ftp
Connected to
220 netlib2 FTP server (Version 2.1aWU(1) Thu Jun 3 23:00:04 EDT 1993) ready.
Name ( anonymous
331 Guest login ok, send your complete e-mail address as password.
230 Guest login ok, access restrictions apply.
ftp> bin
200 Type set to I.
ftp> ls *.tar.z
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
226 Transfer complete.
ftp> mget *



VERSION 1.0  :  February 29, 1992
VERSION 1.0a :  June 30, 1992
VERSION 1.0b :  October 31, 1992

DATE:  October 31, 1992

LAPACK is a library of Fortran 77 subroutines for solving the most commonly occurring problems in numerical linear algebra. It is public-domain software, and can be used freely.

The tar tape contains the Fortran source for LAPACK, the testing programs, and the timing programs.

It also contains Fortran code for the Basic Linear Algebra Subprograms (the Level 1, 2, and 3 BLAS) needed by LAPACK. However this code is intended for use only if there is no other implementation of the BLAS already available on your machine; the efficiency of LAPACK depends very much on the efficiency of the BLAS.

The complete package, including test code and timing programs in four different Fortran data types (real, complex, double precision, double complex), contains some 600,000 lines of Fortran source and comments. You will need approximately 28 Mbytes to read the complete tape. We recommend that you run the testing and timing programs. The total space requirements for the testing and timing for all four data types, including the object files, is approximately 70 Mbytes.

A README file containing the information in this letter and a QUICK_INSTALL file containing a quick reference guide to the installation process are located in the LAPACK directory. Postscript and LaTeX versions of the Installation Guide are in the LAPACK/INSTALL directory, in the files install.tex, psfig.tex,, and Consult the Installation Guide for further details on installing the package and on what is contained in each subdirectory.

It is highly recommended that you obtain a copy of the LAPACK Users' Guide published by SIAM. This Users' Guide gives a detailed description of the philosophy behind LAPACK as well as an explanation of its usage. The LAPACK Users' Guide can be purchased from: SIAM; 3600 University City Science Center; Philadelphia, PA 19104-2688; 215-382-9800, FAX 215-386-7999. It will also be available from booksellers. The Guide costs $15.60 for SIAM members, and $19.50 for non-members. Please specify order code OT31 when ordering. To order by email, send email to

LAPACK has been thoroughly tested, on many different types of computers. The LAPACK project supports the package in the sense that reports of errors or poor performance will gain immediate attention from the developers. Such reports, descriptions of interesting applications, and other comments should be sent by electronic mail to

A list of known problems, bugs, and compiler errors for LAPACK is maintained on netlib. For a copy of this report, send email to with a message of the form: send release_notes from lapack.

A number of working notes were written during the development of LAPACK and published as LAPACK Working Notes, initially by Argonne National Laboratory and later by the University of Tennessee. Many of these reports have subsequently appeared as journal articles. Most of these working notes are available in postscript form from netlib. To receive a list of available reports, send email to with a message of the form: send index from lapack/lawns. Otherwise, requests for copies of these working notes can be sent to the following address.

LAPACK Project
c/o J.J. Dongarra
Computer Science Department
University of Tennessee
Knoxville, Tennessee 37996-1301

Installing LAPACK

Installing LAPACK on Unix systems

See the LAPACK provided notes. The QUICK_INSTALL guide is included here.

==================================================== Quick Reference Guide for the Installation of LAPACK ====================================================

VERSION 1.0 : February 29, 1992 VERSION 1.0a : June 30, 1992 VERSION 1.0b : October 31, 1992 VERSION 1.1 : March 31, 1993

DATE: March 31, 1993

This Quick Reference Guide to the installation of LAPACK has been extracted from the Installation Guide contained in LAPACK/INSTALL. It is only intended as a quick reference. The Installation Guide should be consulted for full details.

To install, test, and time LAPACK:

1. Read the tape or uncompress and tar the file.

tar xvf /dev/rst0 (cartridge tape), or

tar xvf /dev/rmt8 (9-track tape)

uncompress lapack.tar.z (from a file), and

tar xvf lapack.tar (from a file)

2. Test and Install the Machine-Dependent Routines (WARNING: You may need to supply a correct version of second.f and dsecnd.f for your machine)

cd LAPACK/INSTALL make testlsame testslamch testdlamch testsecond testdsecnd

3. Create the BLAS Library, if necessary (NOTE: For best performance, it is recommended you use the manufacturers' BLAS)


4. Run the Level 2 and 3 BLAS Test Programs

cd LAPACK/BLAS/TESTING make -f makeblat2 cd LAPACK/BLAS xblat2s < xblat2d < xblat2c < xblat2z < cd LAPACK/BLAS/TESTING make -f makeblat3 cd LAPACK/BLAS xblat3s < xblat3d < xblat3c < xblat3z <

5. Create the LAPACK Library


6. Create the Library of Test Matrix Generators


7. Run the LAPACK Test Programs


8. Run the LAPACK Timing Programs

cd LAPACK/TIMING make xlintims < > sblasa.out xlintims < > sblasb.out xlintims < > sblasc.out

repeat timing of blas for c, d, and z

Installing LAPACK on VMS systems

The following steps can be used to install LAPACK on VMS systems.

  1. Create directories [.LAPACK.SRC] and [.LAPACK.BLAS.SRC]
  2. ftp the Fortran files from the unpacked tar file into the appropriate directory
  3. Compile the Fortran files
  4. Append the object files into CERN:[NEW.OBJ]LAPACK.OBJ

The Fortran files can be compiled with a simple command procedure such as the one shown below.

Compiling the LAPACK source

$ loop:
$ a = f$search("*.F")
$ if a .eqs. "" then exit
$ write sys$output "Compiling ''a'"
$ fortran 'a'
$ goto loop

Installing LAPACK on VM/CMS systems

LAPACK is installed as two separate text files:

Basic Linear Algebra component (BLAS)
LAPACK itself

These correspond to the files found in LAPACK/BLAS/SRC and LAPACK/SRC in the LAPACK tar file respectively.

Having unpacked the tar file, LAPACK can be installed on VM systems using the following steps:

  1. Transfer the source files to VM, e.g. using ftp.
  2. Edit the source files so that they will compile.

The above changes, with the exception of the first two which can be simply performed using an editor, can be done using FLOPPY gif.

Converting LAPACK for VSFORTRAN compatibility



Install LAPACK on Windows/NT systems

Install LAPACK on MSDOS systems

next up previous contents index
Next: MPA Up: Access to licensed Previous: GPHIGS

Janne Saarela
Wed Mar 29 15:50:22 METDST 1995