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

Christopher Ruesch christopher.ruesch@gmail....
Sun Apr 21 16:41:03 CDT 2013


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-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 <ilanschnell@gmail.com>
> Subject: Re: [Numpy-discussion] Can Numpy use static libraries from
>         LAPACK?
> To: Discussion of Numerical Python <numpy-discussion@scipy.org>
> Message-ID:
>         <
> CAHxB1U3+OmXPMU-2vX8i50xhS+RBdQzGRuWqk4zocZpHwBmgmA@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 <ribonucleico@gmail.com>
> 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
> > NumPy-Discussion@scipy.org
> > 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 <ribonucleico@gmail.com>
> Subject: Re: [Numpy-discussion] Can Numpy use static libraries from
>         LAPACK?
> To: Discussion of Numerical Python <numpy-discussion@scipy.org>
> Message-ID:
>         <
> CAD4ivxU3-On5fjrUvByrCU0xwVr9Lrycp557iho-_pnQX+4D1A@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 <ilanschnell@gmail.com>
> 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 <ribonucleico@gmail.com
> >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
> >> NumPy-Discussion@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >>
> >>
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > 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
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
> End of NumPy-Discussion Digest, Vol 79, Issue 67
> ************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130421/4db7d165/attachment.html 


More information about the NumPy-Discussion mailing list