[PYTHON MATRIX-SIG] HP problem

Konrad Hinsen hinsen@ibs.ibs.fr
Tue, 25 Feb 1997 10:24:45 +0100


> Using gcc is not really fine except under certain conditions.  If you
> try to compile with -g, you can't make a shared module b/c of problems
> with the size of some symbol table (and using -fPIC doesn't solve the
> problem).  

True, but I see no reason to compile the LAPACK code with -g. I use
gcc only for the two modules that cc can't handle, so that shouldn't
cause too much trouble.

> Exactly /how/ does one configure out the lapack_lite stuff and switch
> to using the fortran versions.  That has not been convered in anything
> I've personally read.

Because it's machine dependent. Here are the instructions for HP/UX:

1) Get the LAPACK/BLAS source code and compile it as position-independent
   code (note: the precompiled LAPACK on netlib is not position-independent).

2) Change the Setup line for lapack_lite to

lapack_lite -DNO_APPEND_FORTRAN -I../NumPy/Include -I../NumPy/NumPyLib ../NumPy/lapack_litemodule.c -L/usr/local/lib -llapack -lblas -lcl -lm

Of course you have to change the -L option to point to your copy of
LAPACK and BLAS.

It would be nice if others could contribute appropriate instructions
for their machines for a collection of "optimization hints" for NumPy.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-4.76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________