logo       

Re: doc bug in numarray 1.1: msg#00051

python.numeric.general

Subject: Re: doc bug in numarray 1.1

Stephen Walton wrote:

These libraries are specific to the commercial Absoft Fortran
compiler. If you change the lapack_libs assignment in addons.py to

lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 'g2c', 'm']


And I'm a bit of an idiot. This should be a permanent change;

great. Do we need to submit a bug report, or is someone going to do this?

By the way, if it is found that different library lists are needed for different systems, it would be nice to have a small selection of list of commented out options:


if BUILTIN_BLAS_LAPACK:
sourcelist = [
os.path.join('Packages/LinearAlgebra2/Src', 'lapack_litemodule.c'),
os.path.join('Packages/LinearAlgebra2/Src', 'blas_lite.c'),
os.path.join('Packages/LinearAlgebra2/Src', 'f2c_lite.c'),
os.path.join('Packages/LinearAlgebra2/Src', 'zlapack_lite.c'),
os.path.join('Packages/LinearAlgebra2/Src', 'dlapack_lite.c')
]
lapack_libs = []
else:
sourcelist = [
os.path.join('Packages/LinearAlgebra2/Src', 'lapack_litemodule.c'),
]

# Set to list off libraries to link against.
# (only the basenames, e.g. 'lapack')
## for atlas on linux:
lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 'm']
## for absoft on linux:
#lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 'm','someotherlib']
## for whatever on whatever:
#lapack_libs = ['a','different','list']


Also:
Shouldn't this be inside the "if" above ?

# Set to list directories to be searched for BLAS and LAPACK libraries
# For absoft on Linux
##lapack_dirs = ['/usr/local/lib/atlas', '/opt/absoft/lib']
# For atlas on Gentoo Linux
lapack_dirs = []

Though I suppose it doesn't hurt to search non-exisitant directories.


By the way. I set the USE_LAPACK environment variable. Is there a way to pass it in as an option to setup.py instead? That seems a better way of keeping with the spirit of distutils.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@xxxxxxxx


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise