6
6
information about the installation machine.
7
7
cblas.h : The C header file for the C interface to the BLAS.
8
8
clapack.h : The C header file for the C interface to LAPACK.
9
liblapack.a : The LAPACK routines provided by ATLAS. If you want a full
10
lapack library, the .o in this lib can be archived into the
11
f77 lapack lib without error.
9
liblapack.a : The serial LAPACK routines provided by ATLAS.
12
10
libcblas.a : The ANSI C interface to the BLAS.
13
11
libf77blas.a : The Fortran77 interface to the BLAS.
14
12
libatlas.a : The main ATLAS library, providing low-level routines for all
17
Your archive may also contain additional libraries, if it has posix thread
15
Your archive may also contain additional libraries, if it has parallel thread
18
16
support. These optional libs are:
20
18
libptcblas.a : The ANSI C interface to the threaded (SMP) BLAS.
21
19
libptf77blas.a : The Fortran77 interface to the threaded (SMP) BLAS.
20
libptlapack.a : The parallel LAPACK routines provided by ATLAS.
23
22
********************************* LINKING *************************************
24
23
When linking, remember that order is important. So, if you want uniprocessor
25
24
libs, your link line would contain IN THIS ORDER:
26
25
-LLIBDIR -llapack -lcblas -lf77blas -latlas
27
26
And if you want to utilize an SMP version, it would be:
28
-LLIBDIR -llapack -lptcblas -lptf77blas -latlas
27
-LLIBDIR -lptlapack -lptcblas -lptf77blas -latlas
30
29
NOTE: On Apple's OS X, the above won't work, since system directories are
31
30
searched before the -L directories. OS X includes ATLAS internally, so
34
33
library using the full path, rather than using the -L/-l combo.
36
35
************************** GETTING A FULL LAPACK LIB **************************
37
ATLAS does not provide a full lapack library. However, there is a simple way
38
to get ATLAS to provide its faster LAPACK routines to a full LAPACK library.
39
ATLAS's internal routines are distinct from LAPACK's, so it is safe to compile
40
ATLAS's LAPACK routines directly into a netlib-style LAPACK library.
41
If you install LAPACK before ATLAS, this can be automated as described in
42
ATLAS/INSTALL.txt. The following describes adding netlib LAPACK to an
43
already built ATLAS library:
45
First, obtain the LAPACK src from netlib and build the LAPACK library as
46
normal. Then, in the lib/ subdirectory of your ATLAS build directory
47
(where you should have a liblapack.a), issue the following commands:
51
cp <your LAPACK path & lib> ../liblapack.a
52
ar d ../liblapack.a lsame.o xerbla.o csrot.o zdrot.o
53
ar r ../liblapack.a *.o
57
Just linking in ATLAS's liblapack.a first will not get you the best LAPACK
58
performance, mainly because LAPACK's untuned ILAENV will be used instead
59
of ATLAS's slightly tuned one.
36
To get a full FORTRAN implementation of lapack, download netlib lapack
37
and use the --with-netlib-lapack-tarfile option discussed in the installation