Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 79, Issue 67

help On Sun, Apr 21, 2013 at 2:44 PM, <numpy-discussion-request@scipy.org> wrote:
Send NumPy-Discussion mailing list submissions to numpy-discussion@scipy.org
To subscribe or unsubscribe via the World Wide Web, visit http://mail.scipy.org/mailman/listinfo/numpy-discussion or, via email, send a message with subject or body 'help' to numpy-discussion-request@scipy.org
You can reach the person managing the list at numpy-discussion-owner@scipy.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of NumPy-Discussion digest..."
Today's Topics:
1. Can Numpy use static libraries from LAPACK? (James Jong) 2. Re: Can Numpy use static libraries from LAPACK? (Ilan Schnell) 3. Re: Can Numpy use static libraries from LAPACK? (James Jong)
----------------------------------------------------------------------
Message: 1 Date: Sun, 21 Apr 2013 13:35:12 -0400 From: James Jong <ribonucleico@gmail.com> Subject: [Numpy-discussion] Can Numpy use static libraries from LAPACK? To: numpy-discussion@scipy.org Message-ID: < CAD4ivxVdTNgbkMD0rJOGrUGpMUtieN10Gh8WzOz59Xr0196VgA@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Note: I started a thread in StackOverflow a few days ago with this question, but I have not received any response yet (the link is:
http://stackoverflow.com/questions/16093910/numpy-and-scipy-static-vs-dynami... )
The question is the following:
Say that I build ATLAS with LAPACK as follows:
wget http://sourceforge.net/projects/math-atlas/files/Stable/3.10.1/atlas3.10.1.t... wget http://www.netlib.org/lapack/lapack-3.4.2.tgz tar -jxvf atlas3.10.1.tar.bz2 mkdir BUILD cd BUILD ../ATLAS/configure -b 64 -Fa alg -fPIC \ --with-netlib-lapack-tarfile=../lapack-3.4.2.tgz \ --prefix=<ATLAS_INSTALL_PATH> make cd lib make shared make ptshared cd .. make install
Note that I did *not *pass the flag --shared in .my call to configure.
I end up with the following files under BUILD/lib:
Make.inc@ Makefile
the following .a files:
libatlas.a libcblas.a libf77blas.a libptf77blas.a libtstatlas.a liblapack.a libf77refblas.a libptlapack.a libptcblas.a
and the following .so files:
libsatlas.so* libtatlas.so*
Finally, if I define:
BLAS=/path_to_BUILD/lib/libcblas.a LAPACK=/path_to_BUILD/lib/liblapack.a ATLAS=/path_to_BUILD/lib/libatlas.a
and add /path_to_BUILD/lib to LD_LIBRARY_PATH and to the library_dirs variable within thesite.cfg file in NumPy.
Would NumPy and SciPy use my libraries? (even though they all seem to be static?).
Thanks,
Jason
participants (1)
-
Christopher Ruesch