Permalink
Browse files

Instructions for building ATLAS+LAPACK libraries. Some doc updates.

  • Loading branch information...
1 parent 2613162 commit 28caa952b5e39d4f976d7401041873961bb4f454 @pearu pearu committed Oct 19, 2002
Showing with 41 additions and 4 deletions.
  1. +41 −4 INSTALL.txt
View
@@ -8,12 +8,13 @@ SciPy requires the following software installed:
http://www.python.org
2) Numerical Python 20.x or 21.x
http://www.numpy.org/
-3) ATLAS 3.2.1 or newer (see NOTES 2, 3, 4)
+3) ATLAS 3.2.1 or newer with complete LAPACK (see NOTES 2, 3, 4)
http://math-atlas.sourceforge.net/
+ http://www.netlib.org/lapack/
4) f2py 2.13.175-1250 or newer
http://cens.ioc.ee/projects/f2py2e/
5) C, C++, Fortran 77 compilers.
- gcc 2.95.x compilers are recommended
+ gcc 2.95.x, 3.1.x compilers are recommended
http://gcc.gnu.org/
The following software is optional:
@@ -30,6 +31,38 @@ NOTES
2) Complete lapack library is required when using ATLAS, see
http://math-atlas.sourceforge.net/errata.html#completelp
for instructions.
+ Below follows basic steps for building ATLAS+LAPACK from scratch.
+ In case of trouble, consult the documentation of the corresponding
+ software.
+ * Get and unpack
+ http://www.netlib.org/lapack/lapack.tgz
+ to /path/to/src/
+ * Copy proper
+ /path/to/src/LAPACK/INSTALL/make.inc.?????
+ to
+ /path/to/src/LAPACK/make.inc
+ * Build LAPACK:
+ cd /path/to/src/LAPACK
+ make lapacklib # On 400MHz PII it takes about 15min.
+ that will create lapack_LINUX.a when using
+ INSTALL/make.inc.LINUX, for example.
+ * Get the latest stable ATLAS sources from
+ http://math-atlas.sourceforge.net/
+ and unpack to /path/to/src/
+ * Build ATLAS:
+ cd /path/to/src/ATLAS
+ make # Number of questions will be asked
+ make install arch=Linux_PII # This takes about 45min.
+ where arch may vary (see the output of the previous command).
+ * Make optimized LAPACK library:
+ cd /path/to/src/ATLAS/lib/Linux_PII/
+ mkdir tmp; cd tmp;
+ ar x ../liblapack.a
+ cp /path/to/src/LAPACK/lapack_LINUX.a ../liblapack.a
+ ar r ../liblapack.a *.o
+ cd ..; rm -rf tmp
+ * Move all lib*.a files from /path/to/src/ATLAS/lib/Linux_PII/,
+ say, to /usr/local/lib/atlas.
3) If you are willing to sacrifice the performance (by factor of 5 to
15 for large problems) of the linalg module then it is possible to
@@ -75,10 +108,14 @@ and run
python setup.py install
This can take several minutes to hours, depending on the speed of your
-computer.
+computer. You can specify which Fortran compiler to use by
-XXX: From rpm,deb,zip,..
+ export FC_VENDOR=<Vendor>
+
+before the install command. <Vendor> is Absoft, Sun, SGI, Intel,
+Itanium, NAG, Compaq, Digital, Gnu, or VAST.
+XXX: From rpm,deb,zip,..
TESTING
=======

0 comments on commit 28caa95

Please sign in to comment.