help
On Sun, Apr 21, 2013 at 2:44 PM, <[email protected]> wrote: > Send NumPy-Discussion mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > Subject: [Numpy-discussion] Can Numpy use static libraries from > LAPACK? > To: [email protected] > Message-ID: > < > cad4ivxvdtngbkmd0rjogrugpmutien10gh8wzoz59xr0196...@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-dynamic-loading > ) > > 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.tar.bz2/download > 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 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130421/8eb16cdf/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Sun, 21 Apr 2013 13:24:52 -0500 > From: Ilan Schnell <[email protected]> > Subject: Re: [Numpy-discussion] Can Numpy use static libraries from > LAPACK? > To: Discussion of Numerical Python <[email protected]> > Message-ID: > < > cahxb1u3+omxpmu-2vx8i50xhs+rbdqzgruwqk4zoczphwbm...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello Jason, > the answer is yes. This is how my site.cfg on Linux look like: > > [DEFAULT] > library_dirs = <atlas install prefix>/lib > include_dirs = <atlas install prefix>/include > > [blas_opt] > libraries = f77blas, cblas, atlas > > [lapack_opt] > libraries = lapack, f77blas, cblas, atlas > > - Ilan > > On Sun, Apr 21, 2013 at 12:35 PM, James Jong <[email protected]> > wrote: > > > 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-dynamic-loading > > ) > > > > 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.tar.bz2/download > > 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 > > > > _______________________________________________ > > NumPy-Discussion mailing list > > [email protected] > > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130421/12cdef78/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Sun, 21 Apr 2013 14:48:57 -0400 > From: James Jong <[email protected]> > Subject: Re: [Numpy-discussion] Can Numpy use static libraries from > LAPACK? > To: Discussion of Numerical Python <[email protected]> > Message-ID: > < > cad4ivxu3-on5fjruvbyrcu0xwvr9lrycp557iho-_pnqx+4...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Thanks a lot Ilan, > > That's great to know. Do you know if there is any way to verify this? > Perhaps seeing which specific files with their extensions are actually > Numpy loads and uses? > > Jason > > > > On Sun, Apr 21, 2013 at 2:24 PM, Ilan Schnell <[email protected]> > wrote: > > > Hello Jason, > > the answer is yes. This is how my site.cfg on Linux look like: > > > > [DEFAULT] > > library_dirs = <atlas install prefix>/lib > > include_dirs = <atlas install prefix>/include > > > > [blas_opt] > > libraries = f77blas, cblas, atlas > > > > [lapack_opt] > > libraries = lapack, f77blas, cblas, atlas > > > > - Ilan > > > > On Sun, Apr 21, 2013 at 12:35 PM, James Jong <[email protected] > >wrote: > > > >> 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-dynamic-loading > >> ) > >> > >> 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.tar.bz2/download > >> 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 > >> > >> _______________________________________________ > >> NumPy-Discussion mailing list > >> [email protected] > >> http://mail.scipy.org/mailman/listinfo/numpy-discussion > >> > >> > > > > _______________________________________________ > > NumPy-Discussion mailing list > > [email protected] > > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130421/61a9c6ee/attachment.html > > ------------------------------ > > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > End of NumPy-Discussion Digest, Vol 79, Issue 67 > ************************************************ >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
